summaryrefslogtreecommitdiffstats
path: root/git.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-12-05 15:38:06 -0800
committerJunio C Hamano <gitster@pobox.com>2014-12-05 15:38:06 -0800
commitfad84129b4a5c4269d078ca268c893969973c5d6 (patch)
tree9d06f17f5f06dc39e8b619f244da9be741de04db /git.txt
parent7c4741cf911342df5374f4788be6667f875808f6 (diff)
downloadgit-htmldocs-fad84129b4a5c4269d078ca268c893969973c5d6.tar.gz
Autogenerated HTML docs for v2.2.0-33-gc18b86
Diffstat (limited to 'git.txt')
-rw-r--r--git.txt26
1 files changed, 14 insertions, 12 deletions
diff --git a/git.txt b/git.txt
index afb48d39b..dd172548f 100644
--- a/git.txt
+++ b/git.txt
@@ -881,19 +881,21 @@ other
and the `core.editor` option in linkgit:git-config[1].
'GIT_SSH'::
- If this environment variable is set then 'git fetch'
- and 'git push' will use this command instead
- of 'ssh' when they need to connect to a remote system.
- The '$GIT_SSH' command will be given exactly two or
- four arguments: the 'username@host' (or just 'host')
- from the URL and the shell command to execute on that
- remote system, optionally preceded by '-p' (literally) and
- the 'port' from the URL when it specifies something other
- than the default SSH port.
+'GIT_SSH_COMMAND'::
+ If either of these environment variables is set then 'git fetch'
+ and 'git push' will use the specified command instead of 'ssh'
+ when they need to connect to a remote system.
+ The command will be given exactly two or four arguments: the
+ 'username@host' (or just 'host') from the URL and the shell
+ command to execute on that remote system, optionally preceded by
+ '-p' (literally) and the 'port' from the URL when it specifies
+ something other than the default SSH port.
+
-To pass options to the program that you want to list in GIT_SSH
-you will need to wrap the program and options into a shell script,
-then set GIT_SSH to refer to the shell script.
+`$GIT_SSH_COMMAND` takes precedence over `$GIT_SSH`, and is interpreted
+by the shell, which allows additional arguments to be included.
+`$GIT_SSH` on the other hand must be just the path to a program
+(which can be a wrapper shell script, if additional arguments are
+needed).
+
Usually it is easier to configure any desired options through your
personal `.ssh/config` file. Please consult your ssh documentation