1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:46:00 +02:00

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
This commit is contained in:
Waldir Pimenta 2020-09-29 11:58:44 +01:00 committed by GitHub
parent 8803f7ba8d
commit df3ba75e5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,14 +7,22 @@
`git --version`
- Call general help:
- Show general help:
`git --help`
- Call help on a command:
- Show help on a Git subcommand (like `commit`, `log`, etc.):
`git help {{command}}`
`git help {{subcommand}}`
- Execute Git command:
- Execute a Git subcommand:
`git {{command}}`
`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}}`