git push origin master shows an error
failed to push some refs to \'
git@github.com:xyz/abc.git\'To prevent you from losin
Quite important: this can also occur if name of the branch you are on (and want to merge) and the branch upstream are not the same. Then work flow could look like this:
git pull --rebase # to retrieve upstream changes, replay yours on top
git push --dry-run --verbose origin HEAD:master # always good idea: dry-runs..
git push origin HEAD:master # actually push current branch head (non-master) to upstream master