This skill provides a comprehensive overview of the current Git repository state.
When the user asks for a git summary, repository overview, or wants to understand the current state of a git project, use the terminal to run the following commands and present the results in a clear, organized format.
git status --short --branch to get the current branch and working directory status.
git log --oneline -10 --decorate to show the last 10 commits with branch/tag decorations.
git branch -a --list to list all local and remote branches.
git remote -v to show configured remotes.
git diff --stat for unstaged changes
git diff --cached --stat for staged changes
git shortlog -sn --all | head -10 to show top 10 contributors.
Present the gathered information in a structured format:
## 📊 Git Repository Summary
### Current Branch & Status
- Branch: `<branch_name>`
- Status: <clean/dirty with X modified, Y staged, Z untracked>
### Recent Commits (Last 10)
<formatted commit list>
### Branches
- Local: <count> branches
- Remote: <count> branches
<list notable branches>
### Remotes
<list remotes with URLs>
### Uncommitted Changes
<summary of staged and unstaged changes>
git init.
共 1 个版本