Skip to content

Instantly share code, notes, and snippets.

@aseure
Created December 6, 2017 16:06
Show Gist options
  • Save aseure/6027020975f9e8978671af73c5482e99 to your computer and use it in GitHub Desktop.
Save aseure/6027020975f9e8978671af73c5482e99 to your computer and use it in GitHub Desktop.
Interactive rebase
pick f92bb1d add A
pick 7d4a28d add C file
pick 61681da add B file
pick 57f15b4 add D and E files
# Rebase 78b3f67..57f15b4 onto 78b3f67 (4 commands)
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
# d, drop = remove commit
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
# Note that empty commits are commented out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment