Answer the question
In order to leave comments, you need to log in
Git push hangs indefinitely and can sometimes give an error unable to connect. What could be the problem?
We deployed Git on our own server, the port is not used by the standard one. Created a repository. When working through NetBeans, everything works fine, clone, fetch, push. We decided to use a different PHPStorm development environment. To work with Git, we additionally installed gitforwindows.
Now the situation is this, we can clone the repository from the server, but the following commands do not work. Neither push nor fetch. Just an endless connection hangs. The situation is the same if you use another gui such as TortoiseGit. Doesn't throw errors.
There is no information in the git server logs.
From the command line it looks something like this:
$ git push --verbose
Pushing to git://172.16.110.5:9494/test
Looking up 172.16.110.5 ... done.
Connecting to 172.16.110.5 (port 9494) ... 172.16.110.5 done.
fatal: unable to connect to 172.16.110.5:
172.16.110.5[0: 172.16.110.5]: errno=Unknown error
git branch
git submodule status
git push git://172.16.110.5:9494/test.git refs/heads/fix-26720:refs/heads/fix-26720
Answer the question
In order to leave comments, you need to log in
Look in the direction of the submodule, how to properly push them
Submodule is a little different, the project does not contain submodules.
During testing, the following operations were carried out:
Possible problem.
The server asks you for a username and password.
But due to the fact that the ~/.bashrc (or similar) file is configured to output some characters to the "terminal", you may "not see" this request.
Git connects to the server, hangs for a while, waiting for a username / password, and disconnects.
In Netbins it works for you, since it already contains data for connecting to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question