我是靠谱客的博主 花痴月饼,这篇文章主要介绍fatal: destination path ‘xxx’ git clone already exists and is not an empty directory,现在分享给大家,希望可以做个参考。

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

问题

好久没有使用git,今天刚好遇见一个外部项目,需要同步开发,使用git时报错(> git clone git@code.eva-game.com: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

接下来就能正常使用。

最后

以上就是花痴月饼最近收集整理的关于fatal: destination path ‘xxx’ git clone already exists and is not an empty directory的全部内容,更多相关fatal:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(135)

评论列表共有 0 条评论

立即
投稿
返回
顶部