Why does git pull hang?

后端 未结 6 1966
别那么骄傲
别那么骄傲 2020-12-13 14:03

When I do a git pull, from the git bash, the terminal usually runs the pull, updates my local, and then hangs. I\'m not sure if it\'s waiting for me to do somet

6条回答
  •  心在旅途
    2020-12-13 14:26

    You may need to remove unnecessary git objects such as dangling commits & blobs:

    git fsck && git gc --prune=now
    

    git-fsck : Verifies the connectivity and validity of the objects in the database
    git-gc : Cleanup unnecessary files and optimize the local repository

    You can refer here about dangling commits & blobs.

提交回复
热议问题