英文 ▾
git-for-each-repo 手冊的本地化版本
主題 ▾
最新版本 ▾ git-for-each-repo 最後更新於 2.46.0
git-for-each-repo 手冊中的變更
設定與配置
取得與建立專案
基本快照
分支與合併
分享與更新專案
檢查與比較
修補
除錯
電子郵件
外部系統
伺服器管理
指南
管理
底層命令
- 2.46.1 → 2.47.0 無變更
-
2.46.0
07/29/24
- 2.30.1 → 2.45.2 無變更
-
2.30.0
12/27/20
描述
在一組儲存庫上執行 Git 命令。已知選項或 --
指示符後的參數會被當作 Git 子程序的參數。
此命令為實驗性質。行為可能變更。
例如,我們可以對儲存在 maintenance.repo
設定變數中的一組儲存庫執行維護,使用以下指令:
git for-each-repo --config=maintenance.repo maintenance run
這將針對多值設定變數 maintenance.repo
中的每個值 <repo>
執行 git -C <repo> maintenance run
。
子程序行為
如果任何 git -C <repo> <arguments>
子程序傳回非零退出碼,則 git for-each-repo
程序會傳回該退出碼,而不會執行更多子程序。
每個 git -C <repo> <arguments>
子程序都會繼承標準檔案描述符 stdin
、stdout
和 stderr
。
GIT
屬於 git[1] 套件的一部分