git-remote-fd - Reflect smart transport stream back to caller
Contents
Description
This helper uses specified file descriptors to connect to a remote Git server. This is not meant for end
users but for programs and scripts calling git fetch, push, or archive.
If only <infd> is given, it is assumed to be a bidirectional socket connected to a remote Git server
(git-upload-pack, git-receive-pack, or git-upload-archive). If both <infd> and <outfd> are given, they
are assumed to be pipes connected to a remote Git server (<infd> being the inbound pipe and <outfd> being
the outbound pipe).
It is assumed that any handshaking procedures have already been completed (such as sending service
request for git://) before this helper is started.
<anything> can be any string. It is ignored. It is meant for providing information to the user in the URL
in case that URL is displayed in some context.
Environment Variables
GIT_TRANSLOOP_DEBUG
If set, prints debugging information about various reads/writes.
Examples
gitfetchfd::17master
Fetch master, using file descriptor #17 to communicate with git-upload-pack.
gitfetchfd::17/foomaster
Same as above.
gitpushfd::7,8master (asURL)
Push master, using file descriptor #7 to read data from git-receive-pack and file descriptor #8 to
write data to the same service.
gitpushfd::7,8/barmaster
Same as above.
Git
Part of the git(1) suite
Git 2.48.1 07/02/2025 GIT-REMOTE-FD(1)
Name
git-remote-fd - Reflect smart transport stream back to caller
See Also
gitremote-helpers(7)
Synopsis
"fd::<infd>[,<outfd>][/<anything>]" (as URL)
