-
-
Save mingderwang/94205de855af7c60cafa88564ea6abd7 to your computer and use it in GitHub Desktop.
$ git pull origin master //run this first, then | |
$ git push origin master |
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
This works for me , Thank you.
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
works amazingly.
graet! git push -f main worked for me
Thanks this is really helpful for me
Thanks! git push -f origin master worked for me
git push -f origin master
Command above, it's so helpfully for anyone who in terminal says:
! [rejected] master -> master (fetch first)
error: failed to push some refs to '[your repo]'
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.
Thanks! It worked
@Xenia-Io
I even had the same issue and i couldn't fix it with git pull but i tried this and it worked:
git push -f origin master
So try all previous steps but for git push use argument -fIt worked for me
You 're welcome !!!! But just be careful because with what i proposed "git push -f origin master" you update the whole repo and changes will be overridden from now on. So we should not do "git push -f origin master" every time - especially if you have contributors in your repo - you may need to do git reset then !!!
Thanks a lot 👍👍👍
git push -f origin master
thank you it also worked for me too!
thanks works for me as well
try git push -f origin master this worked..Thank u very much Xenia
it work for me ,,i am worried about it .thank you gentleman
Yeah, it worked !!
Actually, my branch is main, so I had just changed the command: git push origin -f master, to command: git push origin -f main
I even had the same issue and i couldn't fix it with git pull but i tried this and it worked:
git push -f origin master
So try all previous steps but for git push use argument -fThis worked great for me, thank you @Xenia-Io
thanks it's working...
Thank you so much, worked for me as well
Nothing was working from me. Copied previously local git files from folder into new folder and easily overwrote it.
It's work very fine, thanks!
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.
please check the above error I'm getting while push please check and let me know the solution
I am just run only two commands.
- git pull origin
- git push origin
Thank you so much for such a magnificent work
great! git push -f main worked for me
git pull origin main
git add .
git commit -m "Merge remote changes"
git push origin main
I am having a problem, can I ask it here or start a new thread?
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
This worked for me. Thank you so much!
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.
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
Thanks this is really helpful for me