---
config:
flowchart:
wrappingWidth: 400
---
flowchart LR
brand["KAIZEN<br/>SKILL LIBRARY"]:::brand
skill("Git"):::skill
first(["Changes + History"]):::topic
second(["Branches + Remotes"]):::topic
third(["Recovery"]):::accent
brand --- skill
skill --- first
skill --- second
skill --- third
classDef brand fill:#0f172a,color:#67e8f9,stroke:#22d3ee,stroke-width:2px,font-family:monospace
classDef skill fill:#172554,color:#eff6ff,stroke:#60a5fa,stroke-width:2px,font-size:20px
classDef topic fill:#0c4a6e,color:#bae6fd,stroke:#38bdf8,stroke-width:1px
classDef accent fill:#1e293b,color:#fcd34d,stroke:#f59e0b,stroke-width:1px
linkStyle default stroke:#38bdf8,stroke-width:1px
Git reference guidance for inspecting changes, managing branches and remotes, and recovering repository history. Task routes connect everyday commands with the revision syntax, configuration and recovery details needed to use them deliberately.
Use for Git commands, options, configuration, refspecs and revision ranges; staging, commits, branches, merges, rebase, cherry-pick, revert, reset, stash and tags; history, diffs, blame, bisect and grep; remotes, fetch/pull/push and tracking; hooks, attributes, submodules, worktrees and sparse checkout; reflog/fsck recovery, gc and plumbing. Also use for .gitignore, .gitattributes, .git/config, .git/hooks, Git errors and conflict markers, or choosing a version-control command without an explicit Git mention.
| Task | Useful reference material |
|---|---|
| Review and record changes | Choose what to stage and commit, then inspect differences and history. |
| Integrate branches | Work through branch and merge operations with their effects on repository history. |
| Work with remotes | Understand fetch, pull, push and tracking before synchronizing repositories. |
| Recover and maintain a repository | Find reflog, integrity and maintenance guidance when repository state needs investigation. |
The command material is organized by the job being performed, with descriptive filenames and linked revision, configuration and plumbing references. Command examples and shell-quoting guidance keep arguments and execution context visible alongside the prose.
Start with SKILL.md and follow its context routes.
Start with the command safety and shell-quoting guidance when adapting examples. Inspect the current repository state before applying commands that rewrite history or remove files.
Skill reference documentation is interpreted content for use in open source projects. Check against official documentation sources when dealing with defects or issues that may come up from interpreting this skill's references.
Licensed under Apache-2.0; see LICENSE. Part of the Agent Kaizen skill library.