1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/git.md
Vitor Henrique 61405c6e0e
pages*: fix small typos (#11850)
* pages*: fix small typos

* pages/*: make help and version commands consistent

* pages/*: follow "path/to/file" pattern

* nop: generic display help wording
2023-12-27 12:11:30 +05:30

657 B

git

Distributed version control system. Some subcommands such as commit, add, branch, checkout, push, etc. have their own usage documentation. More information: https://git-scm.com/.

  • Check the Git version:

git --version

  • Show general help:

git --help

  • Display help on a Git subcommand (like clone, add, push, log, etc.):

git help {{subcommand}}

  • Execute a Git subcommand:

git {{subcommand}}

  • Execute a Git subcommand on a custom repository root path:

git -C {{path/to/repo}} {{subcommand}}

  • Execute a Git subcommand with a given configuration set:

git -c '{{config.key}}={{value}}' {{subcommand}}