dotfiles/bin/git-fixup
Jacob Kiers 2755650734 More tools and improvements
Signed-off-by: Jacob Kiers <kiers@comandi.nl>
2017-12-08 18:36:39 +01:00

6 lines
147 B
Bash
Executable File

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