GIT USEFULL ALIASES Remove last commit: git config --global alias.rm-commit 'reset --hard HEAD~1' USAGE: git rm-commit Remove last commit but keeping the changes git config --global alias.edit-commit 'reset --soft HEAD~1' USAGE: git edit-commit