Skip to content

Instantly share code, notes, and snippets.

@btc
Created July 5, 2014 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btc/c89325db3a7df1f7ab45 to your computer and use it in GitHub Desktop.
Save btc/c89325db3a7df1f7ab45 to your computer and use it in GitHub Desktop.
A <- B <- C <- D <- E (master)
A <- B <- C (master)
A <- B <- C <- F <- G (feature)
rebase:
A <- B <- C <- D <- E <- F <- G (feature)
merge:
A <- B <- C <- F <- G <- D <- E (feature)
new master (with merge):
A <- B <- C <- D <- E <- H (master')
where H is a merge commit that brings in F and G from feature
A <- B <- C <- D <- E <- H (master)
\ F <- G ----/
A <- B <- C <- D <- E <- F <- G (master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment