revert last git push code example Example: undo last commit pushed git reset # commitId # Exemple git reset 5310517