git update-server-info做什么? [英] What does git update-server-info do?
问题描述
git update-server-info做什么?我如何知道我是否需要它?该手册说:
一个不动态生成包的哑服务器必须在$ GIT_DIR / info和$ GIT_OBJECT_DIRECTORY / info目录来帮助客户发现服务器具有哪些引用和打包。这个命令会生成这样的辅助文件。
我如何知道我的服务器是否是哑巴,以及它是否做到on它是否必须有一些辅助信息文件?
我通过ssh将一个Web应用程序推送到一个裸仓库,然后拉从这个裸存储库到web根目录。
哑服务器基本上意味着通过HTTP访问。因此,如果您通过 http:
或 https:
URL访问您的Git存储库,则需要 update-server-info
business,否则( git:,
ssh:
,等等)你不需要它。
What does git update-server-info do? How do I know if I need it? The manual says:
A dumb server that does not do on-the-fly pack generations must have some auxiliary information files in $GIT_DIR/info and $GIT_OBJECT_DIRECTORY/info directories to help clients discover what references and packs the server has. This command generates such auxiliary files.
How do I know if my server is dumb, and whether it does or does not do "on-the-fly pack generations", and whether it "must have some auxiliary information files"?
I am pushing a web app via ssh to a bare repository, then pulling from that bare repository into the web root.
Dumb server basically means accessed over HTTP. So if you access your Git repository over http:
or https:
URLs, you need the update-server-info
business, otherwise (git:
, ssh:
, etc.) you don't need it.
这篇关于git update-server-info做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!