Git - Setup & Config Commands

Here are some common Git commands that you might use when setting up a repository or configuring your new Git setup.

Git Version

The git --version command will display the version number of the Git software that is installed on your system.

Git Help

The git --help command will display a list of the most commonly used Git commands and a brief description of each.

This list provides a high-level overview of the most commonly used Git commands and can be a helpful reference when you are starting to learn Git.

Git Documentation HTML Path

The git --html-path command will display the path to the HTML documentation for Git on your system.

This command is useful if you want to access the HTML documentation for Git locally, rather than viewing it online. You can open the documentation in a web browser by entering the path displayed by the git --html-path command followed by the name of the documentation file that you want to view.

Git Documentation Manual Path

The git --man-path command will display the path to the man pages for Git on your system. Man pages are online documentation that provides detailed information about the various Git commands and their options.

This command is useful if you want to access the man pages for Git locally, rather than viewing them online. To view a man page, you can enter the command man followed by the name of the Git command that you want to learn more about. For example, to view the man page for the git clone command, you would enter man git-clone.

Git Documentation Info Path

The git --info-path command will display the path to the info pages for Git on your system. Info pages are online documentation that provides detailed information about the various Git commands and their options.

This command is useful if you want to access the info pages for Git locally, rather than viewing them online. To view an info page, you can enter the command info followed by the name of the Git command that you want to learn more about. For example, to view the info page for the git clone command, you would enter info git-clone.