Skip to content

Instantly share code, notes, and snippets.

@hongchaodeng
Last active August 29, 2015 14:02
Show Gist options
  • Save hongchaodeng/972bc8ea5e312470b0cc to your computer and use it in GitHub Desktop.
Save hongchaodeng/972bc8ea5e312470b0cc to your computer and use it in GitHub Desktop.
Old commits in git rebase
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