Created
April 29, 2026 10:00
-
-
Save Korveld/0b677aa7d25b3b8e7550e6d8a3cd18b7 to your computer and use it in GitHub Desktop.
Git resolve conflicts using theirs
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 checkout --theirs . | |
| git add . | |
| git commit | |
| git rebase --continue | |
| If for any reason you want to bail out and undo the whole rebase: | |
| git rebase --abort | |
| Quick reminder: | |
| --theirs = the branch being merged in (incoming) | |
| --ours = the branch you're currently on (current) | |
| Warning: During a git rebase, the meanings of "ours" and "theirs" are swapped. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment