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

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

    I just had the same problem, tried some of the suggestions on this post but none worked so what i did was, on the GiTHub client i went to tools -> settings and then click on the section where it says add/create default ignored files. Then hit Update and try to commit again through the client.

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

    It happened to me once ,I had a empty repository inside of the repository that I cloned. It was a silly mistake though but could happen .

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

    I had the same problem and I fixed it by renaming one of the file because its name was too long. This fixed the problem. Here is error message from git shell:

    fatal: unable to stat 'plugins/com.napolitano.cordova.plugin.intent/example/app/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$OnlineEventsBridgeModeDelegate.class': Filename too long
    
    0 讨论(0)
  • 2021-01-30 00:32

    I googled failed to create repository and ended up here.

    My problem was that the description for my new repo was too long. There is a charlimit for the description, but GitHub tried to push it anyway and failed.

    0 讨论(0)
  • 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.

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

    Had the same problem, couldn't commit or sync using the windows GUI, but I could commit the changes through the shell. Once I'd added the changes through the shell the windows GUI started to sync normally. Hopefully it's a one off.

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