git push hangs after Total line

后端 未结 17 1106
孤独总比滥情好
孤独总比滥情好 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:43

    I wanted to second @Fabio's comment to the original post - that solved it for me.

    I'm running my own ad hoc local git server on Raspberry Pi. I forgot to chown the new bare repo, and pushing the first commit from a remote PC would just hang indefinitely.

    This fixed it (running chown as root or with sudo):

    cd /srv/git
    chown git:git -R .git
    

    Replacing with the name of your repo.

提交回复
热议问题