git - ! [rejected] master -> master (fetch first) - Stack Overflow

PHOTO EMBED

Sun Aug 01 2021 13:53:18 GMT+0000 (Coordinated Universal Time)

Saved by @davidTheNerdy #git

git fetch origin master:tmp
git rebase tmp
git push origin HEAD:master
git branch -D tmp
content_copyCOPY

rebase master to main

https://stackoverflow.com/questions/28429819/rejected-master-master-fetch-first