git-remote-ext
(1)Bridge smart transport to external command.
DESCRIPTION
This remote helper uses the specified <command> to connect to a remote Git server.
Data written to stdin of the specified <command> is assumed to be sent to a git:// server, git-upload-pack, git-receive-pack or git-upload-archive (depending on situation), and data read from stdout of <command> is assumed to be received from the same service.
Command and arguments are separated by an unescaped space.
The following sequences have a special meaning:
'% '
%%
%s
%S
%G (must be the first characters in an argument)
This is useful if the remote side is git:// server accessed over some tunnel.
%V (must be first characters in argument)
ENVIRONMENT VARIABLES
ENVIRONMENT VARIABLES PASSED TO COMMAND
EXAMPLES
This remote helper is transparently used by Git when you use commands such as "git fetch <URL>", "git clone <URL>", , "git push <URL>" or "git remote add <nick> <URL>", where <URL> begins with ext::. Examples:
"ext::ssh -i /home/foo/.ssh/somekey user@host.example %S foo/repo"
"ext::socat -t3600 - ABSTRACT-CONNECT:/git-server %G/somerepo"
"ext::git-server-alias foo %G/repo"
"ext::git-server-alias foo %G/repo %Vfoo"
"ext::git-server-alias foo %G/repo% with% spaces %Vfoo"
"ext::git-ssl foo.example /bar"