Skip to content

Instantly share code, notes, and snippets.

View wortwart's full-sized avatar

Herbert Braun wortwart

View GitHub Profile
@minism
minism / gist:1928314
Created February 28, 2012 01:10
Git merge theirs
# in case branchA is not our current branch
git checkout branchA
# make merge commit but without conflicts!!
# the contents of 'ours' will be discarded later
git merge -s ours branchB
# make temporary branch to merged commit
git branch branchTEMP