This keeps the log clean by eradicating the incorrect commit instead of introducing new commits repairing earlier faulty commits.Bálint SassBálint Sass 56111 gold badge66 silver badges1515 bronze badges 1 git reset is the same as git reset --mixed = it undoes the previous git commit as well as the previous git increase.cs95cs95 404k105105 gold ba