git push hangs after Total line

后端 未结 17 1040
孤独总比滥情好
孤独总比滥情好 2020-12-05 16:38

My git push is hanging after appearing to complete the push. I am going git push

Counting objects: 51, done.
Delta compression using up to 2 threads.
C         


        
相关标签:
17条回答
  • 2020-12-05 17:18

    In my case, the remote had a full disk. Removing some files on the remote promptly fixed the issue.

    0 讨论(0)
  • 2020-12-05 17:18

    Checkout the user rights that git is using!

    In my case I tried through ssh and the used system user was unable to write into the git bare repository...

    Here is how you can debug your ssh connection

    0 讨论(0)
  • 2020-12-05 17:20

    Use this command:

    git remote add origin <url>
    git push -f origin master
    
    0 讨论(0)
  • 2020-12-05 17:21

    It can be (as the accepted answer suggests) just a moment to wait, but in the majority of cases it is linked to permissions on the remote. While mostly a non-issue on public git services such as GitHub, Gitlab or Bitbucket, self-hosted remotes might have a special user, or a group for access.

    And on new bare repositories it doesn't suffice to change the folder, but instead needs to be recursive because of .git-Folder inside.

    0 讨论(0)
  • 2020-12-05 17:21

    In my case it was caused by a problem with msysgit 1.9.5. Downgrading to msysgit 1.9.4 solved the problem.

    0 讨论(0)
  • 2020-12-05 17:22

    Adding another local commit and retrying push worked for me.

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