First, you must figure out what you need.
Note: the man pages for git as well as the official documentation can be a bit confusing for a beginner. Git commands are often referred as git-command
, e.g. git-add, git-commit, ...
. Thus you can check the man page for any command: man git-command
, e.g. man git-commit, man git-add, ...
. However when you use those commands, the hyphen must be replaced by a space. You would do: git add myfile.txt
and not git-add myfile.txt
.