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

6 lines
154 B
Plaintext
Raw Normal View History

2021-12-02 11:47:04 +00:00
#!/bin/sh
# Remove the given files from the last commit
#git diff -p HEAD~ -- "$@" | git apply --reverse --cached
git reset HEAD~ "$@"
git commit --amend