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

6 lines
138 B
Text
Raw Normal View History

2021-12-02 12:47:04 +01:00
#!/bin/sh
# Remove the given files from the last commit
2021-12-02 23:28:11 +01:00
# https://stackoverflow.com/a/70197343
2021-12-02 12:47:04 +01:00
git reset HEAD~ "$@"
2021-12-02 23:28:11 +01:00
git commit -v --amend