git push hangs and does nothing
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
>
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?
Try pushing to git using http:// instead git://. If it works this way probably your router is blocking the git port.
I had this exact same problem when running GIT from a command prompt (Win 8.1) within a VirtualBox. I found that if you simply press a key on the keyboard that you will be prompted for your username, and then all is ok. It seems that the prompt was stuck, awaiting keyboard input.
On your current branch, use the following command to update your config
$ git config --global user.email "email@example.com"
This worked for me!
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
精彩评论