Progress:
TIER 2 · MODULE 20· Intermediate

git help

git help <cmd>, or git <cmd> --help. Read the manuals.

🎯 What & why

git help is your manual. 'git help <cmd>' opens the full man page; 'git <cmd> -h' shows the one-screen summary. Read the manuals - they are unusually good.

🧠 Mental model

Three layers: -h for the cheat sheet, git help <cmd> for the full reference, git help -g for conceptual guides. Pick the layer that matches your question.

🛠️ Synopsis

git help [-a|--all] [-g|--guides] [-i|--info] [-m|--man] [-w|--web]
             [-v|--verbose] [--config] [<command>|<guide>]

🎚️ Switches & options

FlagWhat it does
-a, --allList every git command available on this system
-g, --guidesList the conceptual guides (gitcore-tutorial, gitglossary, gitworkflows...)
-i, --infoRender the page through info instead of man
-m, --manForce the man backend (default on Linux)
-w, --webOpen the HTML page in a browser
-v, --verboseWith --all, also show one-line descriptions
--configDump every config variable Git knows about - searchable gold

💡 Use cases

🧪 Examples

Full man page
git help rebase
Quick summary
git rebase -h
List all commands
git help -a
Read a guide
git help gitrevisions

🎓 Recommendations

🪤 Common pitfalls

🔗 Related modules

📝 Quiz

Hit each option, then Check answers. Score is recorded; Next is always open.