1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 05:45:59 +02:00
tldr/pages/common/git.md
Managor 79b8d3e3b8
*: replace … with individual dots and refresh pages (#16368)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-04 10:20:26 +03:00

29 lines
678 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/docs/git>.
- 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 {{[-h|--help]}}`
- Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.):
`git help {{subcommand}}`
- Display version:
`git {{[-v|--version]}}`