$git push origin master
To git@github.com:dimitar9/first_app.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:%USERNAME/first_app.git'
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.
$git push origin master To git@github.com:dimitar9/first_app.git ! [rejected] master -> master (non-fast-forward) error: failed
Share
This means that there are some changes on GitHub which have not been merged into your current branch. To resolve this, do what the error message is telling you to:
git pull, resolve any conflicts, then try pushing again.