git cancel last commit Posted on March 10, 2022 by ByKutlu Git cancel last commit command: git reset –soft HEAD~1