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

6 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