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

前端 未结 22 1149
囚心锁ツ
囚心锁ツ 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:41

    I had an interesting issue - even though I had an excel file open called "Combined - ForImportv4.xlsm", Git UI had no problem checking that in but it gave the error in the OP's subject for the backup file "~$Combined - ForImportv4.xlsm" so I discarded that change and all went through.

    PS: As for why i'm checking an Excel file into Git ... just don't got there :)...

    0 讨论(0)
  • 2021-01-30 00:41

    If you are new user make sure that you have confirmed your e-mail. Had same problem and confirmation fixed it!

    0 讨论(0)
  • 2021-01-30 00:43

    I deleted ".git" in children directory and the problem was resolved.

    0 讨论(0)
  • 2021-01-30 00:47

    So guys this is the full steps I had to take in order to fix the problem...

    1) Using Process Explorer (you can download it form here http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) I searched for any process referencing ".git\index" and then I killed it.

    2)Then using Git Shell (Windows Power Shell) I went into the repository which was giving me such difficulty and then furthermore went into its .git folder. (cd .\your_respository_name\.git). I then removed the index.lock file in that directory (rm -r index.lock).

    3)Then from within that same directory I ran git reset HEAD.

    4)Then I manually committed each file using the "git add [file_name]" comand. (You can check that they were added successfully if when you run git status, the files are green.

    5)Next run git commit if your files are added correctly.

    6)Finally go back to github for windows and sync everything up and it should hopefully work and resolve the problem.

    0 讨论(0)
  • 2021-01-30 00:48

    Im using Githug for Windows (7) and faced the same problem. While using PowerShell I realized that I didn't fill Full Name and email address in tools > options. Look like a beginner mistake (and I am!).

    hope it helps!

    0 讨论(0)
  • 2021-01-30 00:48

    I am using windows client and getting the same error. Then suddenly I realized that my local db in app_data was opened on the SQL management. It just simply can't commit the some files to github if they are opened or using at the other programs.

    Just disconnected management studio closed it and just simply committed.
    This may be your case also. Check your files out!

    0 讨论(0)
提交回复
热议问题