git - 为什么我在尝试从我的 webfaction 服务器克隆时收到 "destination path ' .' already exists"错误?

标签 git webfaction

我正在尝试使用 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

这将在 ../webapps/nameofwebapp/ 中创建一个新文件夹 github-repo

在你的情况下:

cd ../webapps/nameofwebapp/
git clone git@github.com:github-username/github-repo.git -b develop ./

如果您已经进行了克隆:

cd github-repo
git checkout -b develop origin/develop

关于git - 为什么我在尝试从我的 webfaction 服务器克隆时收到 "destination path ' .' already exists"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25591486/

相关文章:

git - 推送到 github 或从 github pull 时,无法停止提示输入 ssh key 密码

不支持从 tfs 身份验证克隆 git 存储库的 eclipse 错误

python - Django 中的当前目录 (os.getcwd) 如何确定?

python - 无法在 Webfaction 上部署简单的 Flask 应用程序

python - django webfaction : No module named dateutil. relativedelta

GitHub - 使用远程服务器设置自动部署

git - 将 Git 存储库添加到 Perforce 仓库

python - 如何加载测试 Django API?

git - 通过直接从 master pull ,使 git 功能分支与 master 分支保持最新

django - 选择测试数据库?