{
    "content": [
        {
            "type": "text",
            "text": "# GIT-REMOTE-FD (man)\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 server. This is not\nmeant for end users but for programs and scripts calling git fetch, push or archive.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **ENVIRONMENT VARIABLES**\n- **EXAMPLES** (4 subsections)\n- **SEE ALSO**\n- **GIT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "GIT-REMOTE-FD",
        "section": "",
        "mode": "man",
        "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": [
            "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "git fetch fd::17 master",
                        "lines": 2
                    },
                    {
                        "name": "git fetch fd::17/foo master",
                        "lines": 2
                    },
                    {
                        "name": "git push fd::7,8 master (as URL)",
                        "lines": 3
                    },
                    {
                        "name": "git push fd::7,8/bar master",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "GIT",
                "lines": 5,
                "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 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": []
            }
        }
    }
}