git fatal: destination path '**' already exists and is not an empty directory.解决

来源:互联网 发布:中国作家协会网络作家 编辑:程序博客网 时间:2024/05/23 00:10

网上说需要删除或者重新命名已经存在的本地文件,然后在clone 其实不用。

第一步 :进入到已存在的目录  cd (/file)

第二步: 初始化git  init

第三步: 添加远程仓库地址  git remote add origin  (address)

第四步:  添加本地代码  git add .

第五步: 提交本地代码 git commit -m "init"

第六步: 提交到远程仓库 git push origin master 

阅读全文
0 0
原创粉丝点击