首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

git upload-pack

名称

git-upload-pack - 将对象发送回 git-fetch-pack

概要

代码语言:javascript
复制
git-upload-pack [--[no-]strict] [--timeout=<n>] [--stateless-rpc]
                  [--advertise-refs] <directory>
DESCRIPTION
-----------
Invoked by git fetch-pack, learns what
objects the other side is missing, and sends them after packing.

该命令通常不由最终用户直接调用。协议的用户界面位于git fetch-pack侧面,程序对旨在用于从远程存储库中提取更新。有关推送操作,请参阅git send-pack

选项

--no-strict

不要试试<directory> / .git / if <directory>它不是 Git 目录。

--timeout=<n>

不活动<n>秒后,中断传输。

--stateless-rpc

使用 stdin 和 stdout 只执行一个读写周期。这符合 HTTP POST 请求处理模型,在该模型中,程序可以读取请求,编写响应并且必须退出。

--advertise-refs

只输出初始参考广告,程序立即退出。这符合 HTTP GET 请求模型,其中没有收到请求内容,但必须产生响应。

<directory>

要同步的存储库。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com