Tag: scm

github error: failed to push some refs

Posted by on 29-Sep-2008

When trying to push to github received:

$ git push
To git@github.com:zh/laconica.git
 ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:zh/laconica.git'

The solution

$ git pull
....
$ git push

Rails on GIT

Posted by on 26-Feb-2008

Semi-official Rails GIT repositories, maintained by Michael Koziarski :

$ git clone git://github.com/NZKoz/koz-rails.git

Update 13-Mar-2008: Steve’s git-svn mirror of the Rails repo (see the comments)

git clone git://git.sanityinc.com/rails.git

Second GIT origin

Posted by on 21-Feb-2008

I made a mistake to clone from my GitHub Public Clone URL . When trying to push the changes, there was a message:

fatal: The remote end hung up unexpectedly
error: failed to push to 'git://github.com/zh/raplanet.git'

So I added the second origin, the Push URL and successfully pushed to it

$ git remote add origin2 git@github.com:zh/raplanet.git
$ git push origin2 master

Well done, no changes lost :)