我是靠谱客的博主 缥缈御姐,这篇文章主要介绍fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory解决方法,现在分享给大家,希望可以做个参考。

git问题及解决方法

今天在使用git的时候出现了这个错误,我是先在oschina创建了git仓库地址,然后使用git clone https://xxxx@xx.git 操作时,出现的

fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory

解决方法如下:

  1. git init
  2. git remote add origin https://xxx@xx.git
  3. git fetch
  4. git branch master origin/master
  5. git checkout master

然后你就可以用
git add .
git commit -m “提交信息”
git push origin master
对你的代码进行提交上传了。



如果本文对你有帮助,点个赞呗,如果没有帮助,还请指出。 =.=

最后

以上就是缥缈御姐最近收集整理的关于fatal: destination path ‘文件夹名’ git clone already exists and is not an empty directory解决方法的全部内容,更多相关fatal:内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部