Git push failed #23198
-
I executed git push origin master and I got the following error. failed to push some refs to github. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The error message describes exactly what’s going on: There are commits in your Github repository that are not in your local repository. You’ll need to either merge the remote changes with your local work (if you want to keep both local and remote changes) or override the warning (if you are absolutely sure you want to get rid of the remote-only changes). |
Beta Was this translation helpful? Give feedback.
-
thank you for your help. I don’t know how to merge the remote changes with local repository. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Or simply use
|
Beta Was this translation helpful? Give feedback.
-
thank you for your support. I used git pull origin master. given reason in editor and saved. worked! |
Beta Was this translation helpful? Give feedback.
Or simply use