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

前端 未结 22 1223
囚心锁ツ
囚心锁ツ 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条回答
  •  旧时难觅i
    2021-01-30 00:32

    I had this happen to me and this is the easiest way to fix it:

    1. Make a copy of your local folder that has the repo and remove the .git folder form it.
    2. Delete the original repo folder with files.
    3. Re-clone the repo from GitHub with the Windows client.
    4. Delete all of the files that get cloned except for the .git folder.
    5. Copy all files from the copied folder into the new clone folder.

    Add in your commit notes and the commit should work this time.

提交回复
热议问题