Back to bloggitSTTPHow to undo the last git commitlast modified at 2024-11-07by Jonas Bremsgit reset HEAD~1 Where 1 is the number of commits you want to undo.Back to blog