dotfiles/.local/bin/scripts/git-unamend
2021-12-02 23:28:11 +01:00

5 lines
138 B
Bash
Executable file

#!/bin/sh
# Remove the given files from the last commit
# https://stackoverflow.com/a/70197343
git reset HEAD~ "$@"
git commit -v --amend