Undo AI commits with git reset or git revert A developer tutorial advises using `git reset` to undo uncommitted AI-generated commits and `git revert` for pushed ones, emphasizing that developers must know how to reverse AI-written code. The guidance follows a scenario where an AI assistant made five commits, one of which broke the project. Your AI assistant made five commits and one broke everything. Don’t panic. If nothing is pushed, git reset back to the last good commit. If things are already pushed, use git revert on the bad one so the history stays clean for everyone. AI can write the code, but you still need to know how to undo it. Want the full walkthrough? Watch the full video: Undo anything in Git https://jtemporal.com/undo-anything-in-git-reset-vs-revert/ Follow for the git your AI can’t do for you