Skip to content

Instantly share code, notes, and snippets.

@lukin0110
Created November 12, 2013 07:16
Show Gist options
  • Save lukin0110/7426846 to your computer and use it in GitHub Desktop.
Save lukin0110/7426846 to your computer and use it in GitHub Desktop.
git checkout better_branch
git merge --strategy=ours master # keep the content of this branch, but record a merge
git checkout master
git merge better_branch # fast-forward master up to the merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment