I usually use git reset --soft HEAD^ to undo my last commit.
You can add it as a shortcut to git: git config --global alias.undo "reset --soft HEAD^"
Now you can reset you last commit by running: git undo
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I usually use
git reset --soft HEAD^
to undo my last commit.You can add it as a shortcut to git:
git config --global alias.undo "reset --soft HEAD^"
Now you can reset you last commit by running:
git undo