Created
July 22, 2009 14:43
-
-
Save jseifer/152028 to your computer and use it in GitHub Desktop.
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
# Find and replace in textmate to fix merge conflicts. | |
# As shown this takes the second capture group | |
# | |
# <<<<<<< HEAD:2983fjasd | |
# code1 | |
# ======= | |
# code2 | |
# >>>>>>> master:2983rfja9sd | |
# | |
# As shown, this find and replace will take code 2. | |
# | |
# Replace HEAD, master, and capture groups as appropriate for your branches. | |
# Also, be sure to manually check on things. This is for pretty specific | |
# circumstances, but it works for me. | |
# | |
FIND: \<{7} HEAD[.|\s|\S]*?(={7}\n)([.\s\S]*?)>{7} master.*?\s | |
REPLACE: $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment