Skip to content

Instantly share code, notes, and snippets.

@thorncp
Created July 9, 2013 23:35
Show Gist options
  • Select an option

  • Save thorncp/5962258 to your computer and use it in GitHub Desktop.

Select an option

Save thorncp/5962258 to your computer and use it in GitHub Desktop.
git-merge: fast forward vs no fast forward
after fast forward merge
git merge feature-branch
. feature commit - master/feature-branch/HEAD
. feature commit
. feature commit
. master commit
. master commit
after no fast forward merge
git merge --no-ff feature-branch
. generated merge commit - master/HEAD
|\
| . feature commit - feature-branch
| . feature commit
| . feature commit
|/
. master commit
. master commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment