Created
July 13, 2018 16:03
-
-
Save Neoglyph/381fb7a794a1ce63c06396e5d2ee5220 to your computer and use it in GitHub Desktop.
Rebase already pushed commits
This file contains hidden or 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
# example merging 4 commits | |
git checkout mybranch | |
git rebase -i mybranch~4 mybranch | |
# at the interactive screen | |
# choose fixup for commit: 2 / 3 / 4 | |
git push -u origin +mybranch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment