Skip to main content
ClaudeWave
Slash Command828 repo starsupdated 13d ago

log

The log command displays recent Git commit history in a formatted table, extracting the commit hash, message, author, and timestamp. Use this to quickly review project activity and understand what work has been completed recently, with a configurable number of commits to display and a summary highlighting commit patterns and focus areas.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/huangjia2019/claude-code-engineering/HEAD/05-Commands/projects/01-basic-commands/.claude/commands/git/log.md -o ~/.claude/commands/log.md
Then start a new Claude Code session; the slash command loads automatically.

log.md

Show recent git commit history.

Number of commits: $ARGUMENTS (default: 5 if not specified)

## Steps

1. Run `git log --oneline -n [count]`
2. Provide a brief summary

## Output Format

```
## Recent Commits

| Hash | Message | Author | Time |
|------|---------|--------|------|
| abc123 | feat: add login | John | 2h ago |
| def456 | fix: null check | Jane | 5h ago |
...

### Summary
- Total: [n] commits shown
- Most active: [most frequent commit type]
- Recent focus: [what recent work seems to be about]
```

Keep it concise and scannable.