git push hangs and does nothing

Viewed 20630

I'm new to git and testing it out. I've been able to clone a friends repository make small local changes and commit.

I'd like to now test pushing my local changes to the remote repository but unfortunately when I try to do a push

$ git push <my friends remote repository>
<---- hangs here waiting ..I break out by ctr-c

Here is some info showing my current status,

$ git remote show origin
Fetch URL: git://codaset.com/nickbmarine/nickspix.git
Push URL: git://codaset.com/nickbmarine/nickspix.git
HEAD branch: master
Remote branches:
Refactor tracked
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (fast-forwardable)

Any idea's?

4 Answers

Try pushing to git using http:// instead git://. If it works this way probably your router is blocking the git port.

If the above doesn't work, then its likely because you need to (config) your name and email before you can do the (push) to the online github repository. You can submit (config) your name & email through the Git Bash command line by entering these 2 commands:

$ git config --global user.name "Your Name"                 //not your GitHub username

$ git config --global user.email "email@example.com"        //must be yout GitHub email

► After this, you can then run [$ git push] to upload the changes

On your current branch, use the following command to update your config

$ git config --global user.email "email@example.com"

This worked for me!

Related