tags:

views:

1811

answers:

3

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?

+1  A: 

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
Bombe
I deleted old config and typed git remote add origin [email protected]:git/foto-fiori.gitBut I still get that error :(
collimarco
+1  A: 

First step: Check that ssh -vvv [email protected] works with publickey authentication. You might want to have a look at Gitosis- it simplifies the process of hosting Git repositories easily and securely [http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way%5D.

Ramkumar Ramachandra
A: 

Dreamhost was migrating to other servers.

collimarco