1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:42:07 +02:00
tldr/pages/common/git.md
Waldir Pimenta df3ba75e5c
git: update page (#4368)
- Change "Call help" → "Show help"
- Change "command" → "subcommand"
- Add examples of subcommands
- Add articles ("a") where needed
- Add entries for the -c and -C options
2020-09-29 07:58:44 -03:00

28 lines
525 B
Markdown

# git
> Distributed version control system.
> More information: <https://git-scm.com/>.
- Check the Git version:
`git --version`
- Show general help:
`git --help`
- Show help on a Git subcommand (like `commit`, `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}}`