Github windows: Commit failed: Failed to create a new commit

前端 未结 22 1145
囚心锁ツ
囚心锁ツ 2021-01-29 23:48

I have: http://windows.github.com/

My current project has around 20k files, around 150MB (and not speaking about how slow it is and I cannot do a thing now) it doesn\'t

22条回答
  •  借酒劲吻你
    2021-01-30 00:52

    I had this problem too after an unexpected crash. I couldn't fix using the 'Open Shell' option as suggested. I had to open the Windows CLI (Start -> run -> cmd) and delete the index.lock file in my GitHub folder:

    cd \Users\myUser\my\local\github\repo
    cd .git
    del index.lock
    

    Then when I went back to the GitHub app, it committed successfully.


    Note that for some people, according to comments, the file to delete doesn't have the .lock extension, so the delete command could also be del index.

提交回复
热议问题