From df3ba75e5c2951222505afb3ce8257feb0a8d55f Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 29 Sep 2020 11:58:44 +0100 Subject: [PATCH] git: update page (#4368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- pages/common/git.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/common/git.md b/pages/common/git.md index 61c33095b..ddaffb94b 100644 --- a/pages/common/git.md +++ b/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}}`