dotfiles/bin/git-fixup

6 lines
147 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
set -e
TARGET=$(git rev-parse ${1})
git commit --fixup=${TARGET} ${@:2}
EDITOR=true git rebase -i --autostash --autosquash ${TARGET}^;