how to undo last commit and push code example Example: undo last commit pushed git reset # commitId # Exemple git reset 5310517