Browse Source

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
Waldir Pimenta 4 years ago
parent
commit
df3ba75e5c
1 changed files with 13 additions and 5 deletions
  1. 13 5
      pages/common/git.md

+ 13 - 5
pages/common/git.md

@@ -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}}`