git help
Display help and documentation for Git commands
Practical example
git help commit # Opens the full manual page for git-commit # Try 'git help -g' for guides # Try 'git commit -h' for quick help
Command overview & how it works
Opens the manual page for any Git command, providing detailed documentation including all flags, options, and usage examples. Run without arguments to see a list of common Git commands grouped by category. Use git help -a to list every available Git command (including plumbing commands), and git help -g to list guides about specific topics like gitignore, workflows, or revisions. Each man page includes the command synopsis, description, options, configuration, and often examples. For a quick reference in the terminal, use git <command> -h instead — this prints a concise usage summary without opening the pager.
Get the complete offline Git Field Guide
The 97-page PDF + ePub course — ₹499. Read this command, offline.
Practical tips
- Run git <command> -h for a concise, pager-free usage summary instead of the full manual page.
- Use git help -g to browse topic guides such as gitignore, revisions, and workflows.
- Within a man page you can press / to search — for example /--amend jumps to the amend option.
Deep-dive guides & tutorials
In-depth walkthroughs and practical scenarios related to git help
- Guide
How to Install Git on Windows, macOS, and Linux
A step-by-step setup guide covering every major platform, from Homebrew and Winget to package managers, plus verifying your install and configuring your identity.
7 min readRead guide - Tutorial
Git Basics Every Developer Should Know
Understand the core concepts — repositories, commits, branches, and remotes — before diving into the command line.
6 min readRead guide - Guide
How to Write Better Git Commit Messages
A practical guide to writing clear, conventional commit messages that make your project history readable and your team more productive.
6 min readRead guide
Related commands
More from Getting Started