Skip to content

Instantly share code, notes, and snippets.

@jasonmccreary jasonmccreary/
Last active Sep 19, 2019

What would you like to do?
Shell function to "fixup" and "autosquash" a commit with a single command.
# ref:
# usage: fixup [ref]
function fixup() {
git commit --fixup="$1"
GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash "$1"~1
# credit:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.