git switch: Switch to a different branch (modern replacement for git checkout). git switch changes to another branch. git switch main goes to main, git switch -c feature/export creates a new branch and switches to it, and git switch - jumps back to the previous branch. It was added in Git 2.23 to take over the branch part of the older git checkout. Because it only switches branches, it cannot accidentally overwrite files the way a mistyped checkout could.
If you have uncommitted changes that would conflict with the other branch, Git refuses to switch and tells you why. Commit or stash them first. Most modern tutorials and tools use switch and restore, so they are worth learning if you still type checkout out of habit.
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.'