git revert: Create a new commit that undoes the changes from a previous commit — safe for shared branches. git revert undoes the changes of an earlier commit by creating a new commit that does the opposite. History is not rewritten; the original commit stays, followed by its reversal. That makes it the safe way to undo something on a shared branch, such as main or a release branch. Colleagues pull the revert like any other commit, and nobody's history breaks.
It is often the fastest response when a deploy causes problems. Revert the commit, deploy, and fix the real issue calmly afterwards. Reverting a merge commit needs -m 1 to say which parent to keep, and re-merging the same branch later requires reverting the revert first. Write a short reason in the revert message, so the history explains why the change was undone.
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'