admin管理员组

文章数量:1635678

fatal: destination path ‘xxx’ git clone already exists and is not an empty directory

问题

好久没有使用git,今天刚好遇见一个外部项目,需要同步开发,使用git时报错(> git clone git@code.eva-game:xxxx/xxx.git)。fatal: destination path ‘xxx’ git clone already exists and is not an empty directory。

解决办法

git init
git remote add origin https://xxx@xx.git
git fetch
git branch master origin/master
git checkout master

接下来就能正常使用。

本文标签: pathxxxFATALdestinationGit