! [rejected] master -> master (non-fast forward) – Git
[zubin@zubin-desktop]$ git push -v master
Pushing to git@github.com:/path/to/git/repo.git
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to ‘git@github.com:/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.
Solution:
[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!
Comments (0)
Trackbacks (0)
Leave a comment
Trackback