I have created a remote bare repository:
cd ~ mkdir -p git/foto-fiori.git cd git/foto-fiori.git git init --bare
Then I added it:
git remote add origin [email protected]:/home/collimarco/git/foto-fiori.git
I get:
$ git push fatal: '/home/collimarco/git/foto-fiori.git': unable to chdir or not a git archive fatal: The remote end hung up unexpectedly
I also tried to use ~/git/foto-fiori.git but is the same...
I'm desperate: what should I try to do?
Try adding a :
after the hostname:
git add origin [email protected]:/home/collimarco/git/foto-fiori.git
That should also enable you to skip the home directory, i.e. you could say:
git add origin [email protected]:git/foto-fiori.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With