?
本文檔使用 php中文網手冊 發(fā)布
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.
該命令通常不由最終用戶直接調用。協議的用戶界面位于git fetch-pack
側面,程序對旨在用于從遠程存儲庫中提取更新。有關推送操作,請參閱git send-pack
。
--no-strict
不要試試<directory> / .git / if <directory>它不是 Git 目錄。
--timeout=<n>
不活動<n>秒后,中斷傳輸。
--stateless-rpc
使用 stdin 和 stdout 只執(zhí)行一個讀寫周期。這符合 HTTP POST 請求處理模型,在該模型中,程序可以讀取請求,編寫響應并且必須退出。
--advertise-refs
只輸出初始參考廣告,程序立即退出。這符合 HTTP GET 請求模型,其中沒有收到請求內容,但必須產生響應。
<directory>
要同步的存儲庫。