Git hangs while writing objects

后端 未结 9 2013
执念已碎
执念已碎 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 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.

提交回复
热议问题