Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to chdir or not a Git archive

Tags:

git

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?

like image 832
collimarco Avatar asked Aug 17 '09 14:08

collimarco


1 Answers

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
like image 105
Bombe Avatar answered Oct 10 '22 08:10

Bombe