On the command line git help
is very useful if you need a quick reference. But if you have ever tried using it, there's a lot of information.
Use the -h
option for quick, simple reference
Try appending the -h
option on commands to print out a simplified reference. Like this:
git checkout -h
Use git help
all by itself
Type in git help
in the command line and you get a list of common Git commands with a quick description.
Use git help -g
for Guides
Some may not know that these guides exist within git help
:
〉 git help -g The common Git guides are: attributes Defining attributes per path cli Git command-line interface and conventions core-tutorial A Git core tutorial for developers cvs-migration Git for CVS users diffcore Tweaking diff output everyday A useful minimum set of commands for Everyday Git glossary A Git Glossary hooks Hooks used by Git ignore Specifies intentionally untracked files to ignore modules Defining submodule properties namespaces Git namespaces repository-layout Git Repository Layout revisions Specifying revisions and ranges for Git tutorial A tutorial introduction to Git tutorial-2 A tutorial introduction to Git: part two workflows An overview of recommended workflows with Git 'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept.
For example, try:
git help glossary
Have a great day!
Top comments (0)