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