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

6 lines
138 B
Plaintext
Raw Normal View History

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