! [rejected] master -> master (non-fast forward) – Git
[zubin@zubin-desktop]$ git push -v master
Pushing to email@example.com:/path/to/git/repo.git
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to ‘firstname.lastname@example.org:/path/to/git/repo.git’
As a git noob, you will see this for sure. It can easily taken care of. Recall, the reason of usage of git? yes, version control, so before trying to push, do pull, because probably tour local copy is outdated.
[zubin@zubin-desktop]$ git pull <remote add name> master
And then do changes and push. Keep an habit of always pulling before you start coding the day’s work and then push. Some organization will help!