您当前的位置: 首页 >  git

大前端之旅

暂无认证

  • 3浏览

    0关注

    403博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Git常见错误(附解决办法)

大前端之旅 发布时间:2020-06-25 13:14:06 ,浏览量:3

目录
  • 1.Unable to create 'F:/Git/.git/index.lock': File exists.
  • 2.committing is not possible because you have unmerged files.
  • 3.项目推送时遇Git推送错误:
  • 4.完美解决 fatal: unable to access 'https://github.com/.../.git': Could not resolve host: github.com
  • 5.git提交分支出现already up to date的问题和解决
  • 6.强制提交

1.Unable to create ‘F:/Git/.git/index.lock’: File exists.
$ git add doc-public
fatal: Unable to create 'F:/Git/.git/index.lock': File exists.
解决办法:
执行
$ rm -f .git/index.lock
再提交
$ git add doc-public
2.committing is not possible because you have unmerged files.

Committing is not possible because you have unmerged files. 由于您没有合并的文件,因此无法提交。

解决方法 用git diff或者git status 查看哪些文件冲突,有冲突的会提示: ++

关注
打赏
1660524863
查看更多评论
立即登录/注册

微信扫码登录

0.0399s