How do I fix a failed git commit?

前端 未结 4 790
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 09:14

I am new to git and was trying to commit, but I got stuck in what looked like vi which I\'m not familiar with. I managed to get out of it, but I think

4条回答
  •  遥遥无期
    2021-02-05 09:50

    Removing index.lock file manually from .git directory worked.

    or

    From command line:

    $ rm -rf .git/index.lock
    

    Note: Make sure that only one index file exist on .git directory

提交回复
热议问题