Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mingderwang/94205de855af7c60cafa88564ea6abd7 to your computer and use it in GitHub Desktop.
Save mingderwang/94205de855af7c60cafa88564ea6abd7 to your computer and use it in GitHub Desktop.
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.
$ git pull origin master //run this first, then
$ git push origin master
@AmitBisht01
Copy link

Great! it worked, Thanks🫡

@luwukien
Copy link

Bro didn't work for me this solutions.Dont give trash info.You failed bro.So my friend Onur solved this problem.Don't do this againn maan.İf you don't know, don't sniff again.

try git push -f origin master

haha =))) thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment