Skip to main content
ClaudeWave
EN, English
Slash Command3.9k repo starsupdated 7mo ago

git_status

The git_status command examines the current state of a Git repository by executing status checks, comparing the HEAD branch against origin/main, identifying the active branch, and reviewing the README.md file. Use this command when needing a quick overview of uncommitted changes, branch information, and how local work diverges from the remote main branch.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/disler/claude-code-hooks-mastery/HEAD/.claude/commands/git_status.md -o ~/.claude/commands/git_status.md
Then start a new Claude Code session; the slash command loads automatically.

git_status.md

# Git Status

Read the `Files` and run the `Commands` and summarize the current state of the git repository.

## Commands

- Current Status: !`git status`
- Current diff: !`git diff HEAD origin/main`
- Current branch: !`git branch --show-current`

## Files
@README.md