Created
March 5, 2017 08:08
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git pull origin master //run this first, then | |
$ git push origin master |
I used git push -f origin main and it worked for me.
use "--force"
"git push -u origin main --force
git push -f origin just remove all commits, better not use this if you not sure
Great! it worked, Thanks🫡
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
Thanks, it all worked. Most likely my error was due to the fact that I manually uploaded the file to github, but locally it wasn't showing up.