git update-server-info做什么? [英] What does git update-server-info do?

查看:659
本文介绍了git update-server-info做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆