git diff: Show what has changed between commits, branches, or in the working directory. git diff shows what changed. Without arguments, it shows unstaged changes in your working folder. git diff --staged shows what you are about to commit, and git diff main..feature compares two branches. Reading your own diff before committing is one of the best habits in development. It catches leftover debug lines, accidental changes and files you did not mean to include.
A few options help. --stat gives a summary of changed files and line counts, -w ignores whitespace changes, and --word-diff marks changed words instead of whole lines, which is useful for text and documentation. Most editors and Git tools show diffs visually too, but the command line version works everywhere, including on a server.
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.'