Can't commit changes to github
Question
Whenever I try and to commit changes to my github repo I get this error.
To git@github.com:antarr/3skeleton.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:antarr/3skeleton.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.
If I do git pull
first, it changes some of the files on my machine. Which kind of defeats the purpose.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow