Commands/git
/git:summary
Show repository summary (branch, status, recent commits, stashes)
/git:summary
Claude Code
Generate a concise text repository summary by running git commands and displaying:
Branch & HEAD:
- Current branch name (or "DETACHED" if detached HEAD)
- HEAD commit hash (short)
Working Tree Status:
- Modified, staged, untracked file counts
- Merge/rebase state if in progress
Recent Commits (5):
git log --pretty=format:'%h %ad %an: %s' --date=short -5Stash Details:
git stash listIf no stashes, display "No stashes"
Output Format Example:
Branch: main @ a25748b
Status: clean (0 modified, 0 staged, 0 untracked)
Recent Commits:
a25748b 2025-12-06 Author: commit message
b3f9c21 2025-12-05 Author: previous commit
...
Stashes:
stash@{0}: WIP on main: a25748b message