Posted on August 14, 2020September 1, 2020 by Christopher Snayundo git commits // deletes the last commit git reset --hard HEAD^ // where X is the number of commits to undo git reset HEAD~X