Undo previous commit; performs a soft reset, preserving changes in staging
git reset --soft HEAD~1
Amend previous commit
git commit --amend --no-edit
Delete a remote branch
git push origin --delete <branch-name>