I had a Google code project for my kernel which I made long ago, and wanted to overwrite it with my updated local git.
First I add the remote:
git remote add googlecode https://code.google.com/p/supernovakernel/[/code]
Then I force a push:git push -f googlecode master[/code]
If I do a normal push, this was the error:git push googlecode master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://code.google.com/p/supernovakernel/'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.[/code]
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.