git-commands

Enforce the --no-pager flag before Git subcommands for non-paged output.

29|4|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/bearcove/pikru --skill git-commands
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-commands
Source: https://github.com/bearcove/pikru/tree/main/.claude/skills/git-commands
Command: npx skills add https://github.com/bearcove/pikru --skill git-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implements a convention to run Git commands with --no-pager before any subcommand to prevent interactive paging, enabling reliable automation and scripting.

Core Features & Use Cases

  • Enforces the --no-pager usage before common subcommands (log, diff, show, etc.)
  • Improves scripting reliability by producing non-paginated output for pipelines
  • Reduces manual interaction during CI, demos, and fast reviews

Quick Start

Run git commands with --no-pager before the subcommand to avoid interactive paging.

Frequently Asked Questions about git-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop git log from opening an interactive pager in CI pipelines?▼

Place the --no-pager flag before the git subcommand to prevent interactive paging. This ensures non-paginated output for CI pipelines, scripts, and rapid local reviews without blocking.

Why does my git diff command hang in automated scripts?▼

Interactive paging causes git commands to block while waiting for user input in scripts. Applying --no-pager before the subcommand eliminates this blocking behavior, producing non-paged outputs for automation.

What is the correct syntax for git --no-pager before a subcommand?▼

The --no-pager flag must appear before the subcommand, such as git --no-pager log. This placement enforces non-paged output for commands like diff and show, preventing interactive paging.

Can I use git --no-pager for fast local code reviews?▼

Yes, git --no-pager is effective for fast local reviews. It outputs non-paginated results directly, reducing manual interaction and allowing you to scan logs and diffs without navigating an interactive pager.

Does git --no-pager work with all git subcommands?▼

Git --no-pager works with common subcommands like log, diff, and show to enforce non-paged outputs. It is designed for scripting, CI pipelines, and rapid local reviews where interactive paging is undesirable.