dotfiles/bin/git-unfuck

3 lines
85 B
Bash
Executable file

#!/usr/bin/env bash
git log -1 --format="%h - %an, %ar : %s"
git reset HEAD~1 --soft