Answer the question
In order to leave comments, you need to log in
Not pushing changes to github with git push?
I can't push new changes to a github project using git push. Here is the error:
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/rastr-0/Simple-algorithms-with-C-.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Answer the question
In order to leave comments, you need to log in
git pull
Did you try to do it first? How is that advised in error?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question