Forked from sharbel93/How to solve this problem of "! [rejected] master -> master (fetch first)"
Created
February 25, 2024 06:26
-
-
Save bishwajeet0771/cd840cef51451c9157c0984bd3eb3587 to your computer and use it in GitHub Desktop.
How to solve this problem of "! [rejected] master -> master (fetch first)"
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
| First Do this ... | |
| git fetch origin master | |
| git merge master | |
| Then, do this ... | |
| git fetch origin master:tmp | |
| git rebase tmp | |
| git push origin HEAD:master | |
| git branch -D tmp | |
| Now everything works well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment