{
    "mode": "man",
    "parameter": "GIT-UPDATE-SERVER-INFO",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/GIT-UPDATE-SERVER-INFO/1/json",
    "generated": "2026-11-24T02:49:36Z",
    "synopsis": "git update-server-info [-f | --force]",
    "sections": {
        "NAME": {
            "content": "git-update-server-info - Update auxiliary info file to help dumb servers\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "git update-server-info [-f | --force]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A dumb server that does not do on-the-fly pack generations must have some auxiliary\ninformation files in $GITDIR/info and $GITOBJECTDIRECTORY/info directories to help clients\ndiscover what references and packs the server has. This command generates such auxiliary\nfiles.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f, --force",
                    "content": "Update the info files from scratch.\n",
                    "flag": "-f",
                    "long": "--force"
                }
            ]
        },
        "OUTPUT": {
            "content": "Currently the command updates the following files. Please see gitrepository-layout(5) for a\ndescription of what they are for:\n\n•   objects/info/packs\n\n•   info/refs\n",
            "subsections": []
        },
        "GIT": {
            "content": "Part of the git(1) suite\n\nGit 2.43.0                                   07/02/2025                    GIT-UPDATE-SERVER-INFO(1)",
            "subsections": []
        }
    },
    "summary": "git-update-server-info - Update auxiliary info file to help dumb servers",
    "flags": [
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "Update the info files from scratch."
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Update auxiliary repository information for dumb servers (a regular web server that only serves files).",
        "examples": [
            {
                "description": "Update Git's auxiliary files for dumb HTTP serving",
                "command": "git update-server-info"
            },
            {
                "description": "Rebuild the auxiliary info files from scratch",
                "command": "git update-server-info {{-f|--force}}"
            }
        ]
    }
}