How Do You Fix a Non-Terminating (Hanging) Command Such as “git push origin master” ?

Problem scenario
The command "git push origin master" hangs. What should you do?

Solution
Cancel the job with ctrl-c.  (Hold the "Control" key and tap the "C" key.)

For the target .git repository, does the file have the owner and group associated with the "git" user?

If you used the git user in the "git clone" command (as in "git clone @...") but then changed the owner and group of the .git repository to something else, you may see an indefinite hang after the "git push origin master" command.

Leave a comment

Your email address will not be published. Required fields are marked *