Skip to content

Instantly share code, notes, and snippets.

@dpwright
Created May 11, 2012 03:29
Show Gist options
  • Save dpwright/2657349 to your computer and use it in GitHub Desktop.
Save dpwright/2657349 to your computer and use it in GitHub Desktop.
Git merge driver which always accepts your own version of a file
# I want to keep MY version when there is a conflict
# Nothing to do: %A (the second parameter) already contains my version
# Just indicate the merge has been successfully "resolved" with the exit status
exit 0
@dpwright
Copy link
Author

This code taken from this answer on stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment