git add: Stage file changes — mark them as ready to be committed. git add moves changes into the staging area, the set of changes that will go into your next commit. git add file.php stages one file and git add . stages everything in the current folder. The staging area lets you choose what belongs together. You might have changed five files, but only three relate to the bug fix. Stage those, commit them, and commit the rest separately.
git add -p is especially useful. It shows each change in a file and asks whether to stage it, so you can even split changes within one file. Before committing, check git status or git diff --staged to see exactly what is included. That catches debug code, local config files and unrelated changes before they end up in history.
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.'