dotfiles/.local/bin/scripts/git-unamend

6 lines
154 B
Bash
Executable File

#!/bin/sh
# Remove the given files from the last commit
#git diff -p HEAD~ -- "$@" | git apply --reverse --cached
git reset HEAD~ "$@"
git commit --amend