Git hangs while writing objects

后端 未结 9 2001
执念已碎
执念已碎 2020-12-12 13:21

I\'m trying to git push -u origin master And it just hangs at

Writing objects:  99% (219/220), 12.65 MiB | 97 KiB/s

The

相关标签:
9条回答
  • 2020-12-12 13:57

    In my situation it was the size of the file. By adding an .gitignore file with the required extensions I was able to ignore most of the unwanted files to be pushed.

    0 讨论(0)
  • 2020-12-12 14:01

    In my case, I was trying to push without completing my company's rules. I learnt later that we should start our commit messages with "MOBIL-XXXX" where XXXX is the number developers are assigned in Jira (another tool we use to track development process) by analists.

    Make sure to check if your company has a similar constraining rule.

    0 讨论(0)
  • 2020-12-12 14:04

    I was having the same issue on Windows 10 machine, the writing objects was hanging, but in a little different situation.

    The problem I was having was only when I was trying to add new files to the repository. If I update files which are already existing in the repository everyting was working fine and it doesn't really matter if the file size was big or not. Mostly I was trying to add new scripts.

    I tried every other solution found in the internet but nothing worked in my case and the last thing which I tried actually worked. It seems that it was because of some Windows permissions for the specific drive and folder which prevents the app's from writing in those specific folders or update the files even when I am logged in with an admin account and was running the app as admin. So this command:

    attrib -r +s D:\foldername 
    

    fixed the issue for me.

    Just posting it here, maybe someone have the same issue as mine.

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