我正在尝试使用git clone从我的webfaction服务器下载代码  
$ cd ../webapps/nameofwebapp/
$ git clone git@github.com:github-username/github-repo.git ./
并且有错误:
fatal: destination path '.' already exists and is not an empty directory.
我使用ls,并且有一些东西 nameofwebapp 
auth  git.cgi  gitweb.cgi  repos  static
我想问一下在哪里使用git clone 
我是否需要创建一个新目录?
只是:
git clone git@github.com:github-username/github-repo.git
这将创建一个新的文件夹github-repo在../webapps/nameofwebapp/.
在你的情况下:
cd ../webapps/nameofwebapp/
git clone git@github.com:github-username/github-repo.git -b develop ./
如果您已经完成了克隆:
cd github-repo
git checkout -b develop origin/develop
| 归档时间: | 
 | 
| 查看次数: | 48133 次 | 
| 最近记录: |