I have a project on which I created a git repository:
$ cd myproject
$ git init
$ git add .
$ git commit
I the wanted to create a bare clone on another machine:
$ cd ..
$ git clone --bare myproject ssh://user@server:/GitRepos/myproject.git
I executed the clone but did not print any answer.
I logged on to the server machine and tried to see how the files are stored. The path /GitRepos was empty, so I decided to do the clone again:
$ git clone --bare myproject ssh://user@server:/GitRepos/myproject.git
This time the answer was :
fatal: destination path 'ssh://user@server:/GitRepos/myproject.git' already exists and is not an empty directory.
But I saw that the path was empty.
What's going on here ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…