目录
1.Unable to create ‘F:/Git/.git/index.lock’: File exists.
- 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.强制提交
$ 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 查看哪些文件冲突,有冲突的会提示: ++
关注
打赏