{
    "content": [
        {
            "type": "text",
            "text": "# git-remote-fd (info)\n\n## NAME\n\ngit-remote-fd - Reflect smart transport stream back to caller\n\n## SYNOPSIS\n\n\"fd::<infd>[,<outfd>][/<anything>]\" (as URL)\n\n## DESCRIPTION\n\nThis helper uses specified file descriptors to connect to a remote Git\nserver. This is not meant for end users but for programs and scripts\ncalling git fetch, push or archive.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **ENVIRONMENT VARIABLES**\n- **EXAMPLES**\n- **SEE ALSO**\n- **GIT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "git-remote-fd",
        "section": "",
        "mode": "info",
        "summary": "git-remote-fd - Reflect smart transport stream back to caller",
        "synopsis": "\"fd::<infd>[,<outfd>][/<anything>]\" (as URL)",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "git fetch fd::17 master",
            "Fetch master, using file descriptor #17 to communicate with",
            "git-upload-pack.",
            "git fetch fd::17/foo master",
            "Same as above.",
            "git push fd::7,8 master (as URL)",
            "Push master, using file descriptor #7 to read data from",
            "git-receive-pack and file descriptor #8 to write data to same",
            "service.",
            "git push fd::7,8/bar master",
            "Same as above."
        ],
        "see_also": [
            {
                "name": "gitremote-helpers",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/gitremote-helpers/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "GIT",
                "lines": 3,
                "subsections": []
            }
        ],
        "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\nserver. This is not meant for end users but for programs and scripts\ncalling git fetch, push or archive.\n\nIf only <infd> is given, it is assumed to be a bidirectional socket\nconnected to remote Git server (git-upload-pack, git-receive-pack or\ngit-upload-archive). If both <infd> and <outfd> are given, they are\nassumed 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\ncompleted (such as sending service request for git://) before this\nhelper is started.\n\n<anything> can be any string. It is ignored. It is meant for providing\ninformation to user in the URL in case that URL is displayed in some\ncontext.\n",
                "subsections": []
            },
            "ENVIRONMENT VARIABLES": {
                "content": "GITTRANSLOOPDEBUG\nIf set, prints debugging information about various reads/writes.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "git fetch fd::17 master\nFetch master, using file descriptor #17 to communicate with\ngit-upload-pack.\n\ngit fetch fd::17/foo master\nSame as above.\n\ngit push fd::7,8 master (as URL)\nPush master, using file descriptor #7 to read data from\ngit-receive-pack and file descriptor #8 to write data to same\nservice.\n\ngit push fd::7,8/bar master\nSame as above.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "gitremote-helpers(7)\n",
                "subsections": []
            },
            "GIT": {
                "content": "Part of the git(1) suite\n\nGit 2.34.1                        02/26/2026                  GIT-REMOTE-FD(1)",
                "subsections": []
            }
        }
    }
}