Skip to content

Instantly share code, notes, and snippets.

@Neoglyph
Created July 13, 2018 16:03
Show Gist options
  • Save Neoglyph/381fb7a794a1ce63c06396e5d2ee5220 to your computer and use it in GitHub Desktop.
Save Neoglyph/381fb7a794a1ce63c06396e5d2ee5220 to your computer and use it in GitHub Desktop.
Rebase already pushed commits
# 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