?
This document uses PHP Chinese website manual Release
git-upload-pack - 將對象發(fā)送回 git-fetch-pack
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.
該命令通常不由最終用戶直接調(diào)用。協(xié)議的用戶界面位于git fetch-pack
側(cè)面,程序?qū)χ荚谟糜趶倪h(yuǎn)程存儲庫中提取更新。有關(guān)推送操作,請參閱git send-pack
。
--no-strict
不要試試<directory> / .git / if <directory>它不是 Git 目錄。
--timeout=<n>
不活動(dòng)<n>秒后,中斷傳輸。
--stateless-rpc
使用 stdin 和 stdout 只執(zhí)行一個(gè)讀寫周期。這符合 HTTP POST 請求處理模型,在該模型中,程序可以讀取請求,編寫響應(yīng)并且必須退出。
--advertise-refs
只輸出初始參考廣告,程序立即退出。這符合 HTTP GET 請求模型,其中沒有收到請求內(nèi)容,但必須產(chǎn)生響應(yīng)。
<directory>
要同步的存儲庫。