Created
June 21, 2012 18:16
-
-
Save tmoreira2020/2967517 to your computer and use it in GitHub Desktop.
Fix a binary conflict on git
This file contains 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
#at the branch you want to rebase into "master > mybranch" | |
git rebase -s recursive -X theirs master | |
#then a binary conflict will happen so now you must checkout the version of the binary you want | |
git co --theirs -- my-binary-file.bin | |
git co --ours -- my-binary-file.bin | |
#now you must stage the file | |
git add my-binary-file.bin | |
#finally | |
git rebase -Xtheirs --continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment