# Using Git

> Git command conventions. Use when running any git commands to avoid blocking on interactive pager.

- Skill: `majiayu000/using-git-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/using-git-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/using-git-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/using-git-2

---


# Git Commands

Always use `--no-pager` BEFORE the git command to avoid blocking on interactive pager:

```bash
git --no-pager log -10
git --no-pager diff
git --no-pager show
```

The `--no-pager` flag must come **before** the subcommand (log, diff, show, etc.), not after.

