Last active
August 29, 2015 14:02
-
-
Save hongchaodeng/972bc8ea5e312470b0cc to your computer and use it in GitHub Desktop.
Old commits in git rebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let's say I have two branches | |
- master | |
- topic | |
They looks like: | |
D - E - F - A - G (master) | |
\ | |
- B - A' - C (topic, where A' is cherry-picked from master) | |
If I do | |
``` | |
$ (topic) git rebase master | |
``` | |
The tree will become: | |
D - E - F - A - G (master) - B - C (topic) | |
Apparently, old commits are "put back". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment