1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:02:18 +02:00
tldr/pages/common/git.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

29 lines
652 B
Markdown

# 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/>.
- 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}}`
- Display help:
`git --help`
- Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.):
`git help {{subcommand}}`
- Display version:
`git --version`