Created
May 20, 2020 17:23
-
-
Save everdimension/ff8c67b6a793a784dac43094f3e3a42a to your computer and use it in GitHub Desktop.
"git rebase --onto" — used to rebase only latest (or several latest) commits onto a new branch
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
# This is just a note to self | |
git rebase --onto <base-branch> <current-branch>~ <current-branch> | |
# e.g. git rebase --onto master feature/something~ feature/something | |
# it's important here to use branch name and not other commit id. | |
# Can't use "HEAD" instead of "feature/something" ¯\_(ツ)_/¯ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment