git hangs on push

I cannot push to github. I was able to push little changes, but this time, it hangs after it writes this:

git push origin master
Counting objects: 22, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.51 KiB, done.
Total 12 (delta 8), reused 0 (delta 0)

On my Ubuntu Process Manager, I saw that ssh hangs when I try to push something and it is: ssh git-receive-pack 'xxx/yyy.git'

When I try to directly run this command on my terminal, now it hangs after it writes this:

0078...7d4 refs/heads/master report-status delete-refs side-band-64k quiet ofs-delta

All the other thins work well, but I can't push. What could be the reason?

Additional information: I re-created the git file and changed the remote to HTTP from SSH. Now I get this error when I try to push:

Counting objects: 17, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.19 KiB, done.
Total 9 (delta 6), reused 0 (delta 0)
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

Extra information 2: I've been tested it for hours and it looks like my network connection is the problem. I tried to push from another connection, and it worked very well. What could be the reason behind this? The modem's firewall is disabled, by the way.

I've spent the last 5 hours trying to fix a similar problem. First, are you running this over a tunnel or VPN connection?

Turns out that the MTU (Maximum Transmission Unit) of a tunnel can be misconfigured in that some router in the middle of the network path can only support a lower MTU but this isn't known to the VPN/tunnel software, resulting in dropped packets.

So the quick answer is to try to lower the MTU of your connection:

sudo ifconfig eth0 mtu 1300

Here I'm setting the MTU for the eth0 interface, replace with the interface you're actually using to access the git server. The default MTU is usually 1500.

For OpenVPN I had to update the tun0 interface. There is a better/more robust way to do this in the OpenVPN configuration: use the link-mtu <n> and mssfix options.

git push -u origin master: hangs; nothing happens; repo , Goal: Push my first commit from my local repo to my private repo. Problem: git push -u origin master seems to hang. That is, it� 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. Compressing objects: 100% (47/47), done. Writing objects: 100% (47/47), 27.64 MiB | 6.47 MiB/s, done. Total 47 (delta 4), reused 0 (delta 0) It hangs here and I have to control-c to get back to

In my case issue was related with access rights to repository. I had read only access, after adding rights to write, issue was solved.

The git push command hangs when pushing to my private repo , After some testing, I found the issue #4020 is not related to the version. I have pushed the commits to my public repository with Git LFS, both� 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 something, but I usually exit out of this with CTRL-C. After that, I get that an index.lock is preventing me from doing other things to which I have to delete it.

I had the same happen, cause was a 100% full disk on the receiving end.

Solved: Git Push Hanging even for new repository, Solved: I had a repository on bitbucket which worked just fine for a while. A few weeks ago, I tried to push a rather large commit ( > 10mb) ; it. I had a repository on bitbucket which worked just fine for a while. A few weeks ago, I tried to push a rather large commit ( > 10mb) ; it just hung. I retried several times. Each time, I'd see something like: Counting objects: 34, done. Delta compression using up to 4 threads. Compressing objects: 1

First run the following:

env | grep SSH_ASKPASS

if you get nothing, then you have to set that value. If you're using GNOME, find the location of which is usually found by doing the following:

find / | grep gnome-ssh-askpass

and it is typically found in the /etc/profile.d directory. Normally, this would have loaded automatically, but for some reason it didn't. so run the following:

source /etc/profile.d/

(alternatively, you can just chmod +x the file and run it directly, it's up to you)

Once done, verify that there is a value for env | grep SSH_ASKPASS and then git push will work again.

If you didn't find the file, then do a yum search ssh-askpass and install that package (usually yum install openssh-askpass)

For apt-get, do something similar assuming you're using gnome, but if kde, then maybe there's a kde-ssh-askpass??

Git hangs indefinitely when trying to push --all to GitHub, I had this issue and realized it was because I had set a default port number (and username) in my ~/.ssh/config . I had recently decided to use it for custom ssh� src > git remote add dest /tmp/dst Simulating problem. src > chmod -R 555 /tmp/dst Adding fake file and pushing it. src > touch a && git add a && git commit -m 'demo' src > git push --set-upstream dest master src > git push Counting objects: 3, done. Writing objects: 99% (2/3), 202 bytes | 0 bytes/s. Git hangs. Solution. src > chmod -R 775 /tmp/dst

Check if your network connection is too slow in uploading. Maybe you just need time. Can you monitor your network connection to see if you are sending data upstream ?

git pull does nothing / git push just hangs / debug1: expecting , The solution was found here: SSH works in putty but not terminal. in Ubuntu 13.10/12.10, login and gain sudo access. Edit /etc/ssh/ssh_config , uncomment the� Hi, I have SourceTree on mac os 10.7.5 pointing to a github project. Every time I go to push my changes to it, SourceTree will hang. I changed the preferences to always output the git logs as each command is invoked to see which was the command it get's stuck on. The last command it runs is

Git Push Stuck When Pushing to New Sandbox Project [#2966354 , When I do: git remote add origin ShabanaBlackborder/2966348.git it just hangs forever. While Git itself is unlikely to hang, any of the external parts it calls could, so in order of execution: The pre-commit hook. This is a script at $REPO_ROOT/.git/hooks/pre-commit (it is not the .sample file!

GIT freezes up on push after the TOTAL line. Any Gninjas (Git Ninjas , so on windows I push my branch and the whole thing freezes up. The change set is less than a meg so its small. My googling hasn't turned up much. $ git push� I had the same issue on Xubuntu. Doing ssh -Tv hangs forever. Git pull/push/clone doesn't work but SSH and git status/diff do work. 3.

Git Push Stuck on Writing Objects - balenaCloud, All works well until the final step (git push resin master), and the command hangs indefinitely on 'Writing objects', stays stuck at 54%. I'm very new to git and I've been cloning a repo from BitBucket cloud in SourceTree to my local machine for roughly an hour now. My internet connection is average and so I'd usually chalk this up to a large repo (I don't have access to check the repo size in BitBucket but I'm cloning an organization's entire website, so I assume it's quite large).

  • I believe your problem is the same as this one: GIT impossible to push after add. Give that recommended solution a try.
  • +1 'cos you just saved me hours. What I can't quite work out is why the MTU somewhere between my endpoints changed.
  • Not sure why this got down voted. This resolved the issue for me, worth double checking your file system permissions on the remote side first people. (Not sure why no error is thrown to the process.)
  • This solved my issues after a long search for the cause. Thank you!
  • This solved my issue too, on a personal git server. File owner was the wrong one, and file permissions too.
  • I'm uploading a 300 kb picture to Gmail in less than 5 seconds, I don't think my network connection is too slow. Is there a way to monitor git uploading? I may give it a try.
  • Check if you have a MTU problem on your network connection. If you lower the MTU of the interface of your computer to 1280 are you able to push ?