Skip to content
Justice Tech School

Version and Help

git --version shows the installed version and git help <command> opens the manual for any command. Add -h for a short usage line.

Example
git --version | cut -d' ' -f1,2
git help -h | head -1 | cut -c1-12

Result

git version
usage: git h

Exercise

Open the manual of commit.

git  commit

Quiz Test

How do you read the manual of git add?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.