git clone already exists and is not an empty directory解决办法

  • A+
所属分类:Git 技巧

git clone already exists and is not an empty directory解决办法

在对应的文件夹目录下执行以下命令:

git init
git remote add origin gitpath
git fetch
git branch master origin/master
git checkout master

gitpath为你的项目git地址

百分购

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: