Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created April 12, 2012 10:09
Show Gist options
  • Save Altreus/2366221 to your computer and use it in GitHub Desktop.
Save Altreus/2366221 to your computer and use it in GitHub Desktop.
rebasing
master o-o-o-o-o-A
A - original master
master o-o-o-o-o-A
\
feature B
A - original master
B - first feature commit
master o-o-o-o-o-A
\
feature B-o-o-o-o
A - original master
B - first feature commit
updates C
/
master o-o-o-o-o-A
\
feature B-o-o-o-o
A - original master
B - first feature commit
C - first update commit
updates
master o-o-o-o-o-A-C
\
feature B-o-o-o-o
A - original master
B - first feature commit
C - first update commit
updates
master o-o-o-o-o-A-C
\
feature B-o-o-o-o
A - original master
B - first feature commit
C - first update commit
updates D-o-o
/
master o-o-o-o-o-A-C
\
feature B-o-o-o-o-E-o-o-o
A - original master
B - first feature commit
C - first update commit
D - new update commit
E - new feature commit
updates
master o-o-o-o-o-A-C-D-o-o
\
feature B-o-o-o-o-E-o-o-o
A - original master
B - first feature commit
C - first update commit
D - new update commit
E - new feature commit
1. rebase
updates
master o-o-o-o-o-A-C-D-o-o
\
feature B-o-o-o-o-E-o-o-o
2. merge feature into master (fast-forward)
updates
master o-o-o-o-o-A-C-D-o-o-B-o-o-o-o-E-o-o-o
feature
A - original master
B - first feature commit
C - first update commit
D - new update commit
E - new feature commit
1. new update
updates C
/
master o-o-o-o-o-A
\
feature B-o-o-o-o
2. merge updates into master
updates
master o-o-o-o-o-A-C
\
feature B-o-o-o-o
3. merge feature into master
master o-o-o-o-o-A-C---------?
\ /
feature B-o-o-o-o
? - the fuck is this commit for?
1. new update
updates C
/
master o-o-o-o-o-A
\
feature B-o-o-o-o
2. merge updates into master
updates
master o-o-o-o-o-A-C
\
feature B-o-o-o-o
3. merge feature into master
master o-o-o-o-o-A-C---------?
\ /
feature B-o-o-o-o
? - the fuck is this commit for?
updates D-o-o
/
master o-o-o-o-o-A-C
\
feature B-o-o-o-o-E-o-o-o
A - original master
B - first feature commit
C - first update commit
D - new update commit
E - new feature commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment