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