git reset -- MAIN^ git reset -- MAIN^2 (reset last 2 commits) (increase number for number of commits you want to delete from your local repo, before youve pushed)