{
    "mode": "man",
    "parameter": "git-remote-fd",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/git-remote-fd/1/json",
    "generated": "2026-07-05T13:00:47Z",
    "synopsis": "\"fd::<infd>[,<outfd>][/<anything>]\" (as URL)",
    "sections": {
        "NAME": {
            "content": "git-remote-fd - Reflect smart transport stream back to caller\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "\"fd::<infd>[,<outfd>][/<anything>]\" (as URL)\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This helper uses specified file descriptors to connect to a remote Git server. This is not\nmeant for end users but for programs and scripts calling git fetch, push or archive.\n\nIf only <infd> is given, it is assumed to be a bidirectional socket connected to remote Git\nserver (git-upload-pack, git-receive-pack or git-upload-archive). If both <infd> and <outfd>\nare given, they are assumed to be pipes connected to a remote Git server (<infd> being the\ninbound pipe and <outfd> being the outbound pipe.\n\nIt is assumed that any handshaking procedures have already been completed (such as sending\nservice request for git://) before this helper is started.\n\n<anything> can be any string. It is ignored. It is meant for providing information to user in\nthe URL in case that URL is displayed in some context.\n",
            "subsections": []
        },
        "ENVIRONMENT VARIABLES": {
            "content": "GITTRANSLOOPDEBUG\nIf set, prints debugging information about various reads/writes.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "git fetch fd::17 master",
                    "content": "Fetch master, using file descriptor #17 to communicate with git-upload-pack.\n"
                },
                {
                    "name": "git fetch fd::17/foo master",
                    "content": "Same as above.\n"
                },
                {
                    "name": "git push fd::7,8 master (as URL)",
                    "content": "Push master, using file descriptor #7 to read data from git-receive-pack and file\ndescriptor #8 to write data to same service.\n"
                },
                {
                    "name": "git push fd::7,8/bar master",
                    "content": "Same as above.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "gitremote-helpers(7)\n",
            "subsections": []
        },
        "GIT": {
            "content": "Part of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                             GIT-REMOTE-FD(1)",
            "subsections": []
        }
    },
    "summary": "git-remote-fd - Reflect smart transport stream back to caller",
    "flags": [],
    "examples": [
        "Fetch master, using file descriptor #17 to communicate with git-upload-pack.",
        "Same as above.",
        "Push master, using file descriptor #7 to read data from git-receive-pack and file",
        "descriptor #8 to write data to same service.",
        "Same as above."
    ],
    "see_also": [
        {
            "name": "gitremote-helpers",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/gitremote-helpers/7/json"
        }
    ]
}