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
In my case, the remote had a full disk. Removing some files on the remote promptly fixed the issue.
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
Use this command:
git remote add origin <url>
git push -f origin master
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.
In my case it was caused by a problem with msysgit 1.9.5
. Downgrading to msysgit 1.9.4
solved the problem.
Adding another local commit and retrying push worked for me.