簡體   English   中英

如何從主存儲庫中簽出過去 5 天的 git 分支 jenkins gui 編輯

[英]how to checkout git branches jenkins gui edits of last 5 days from master repo

團隊,

我正在嘗試通過手動編輯 jenkins gui configuration 來搜索用戶檢查過的字符串。 每當我們保存這個 gui 配置時,就會直接提交到 gerrit 上的 master。 現在,我想搜索過去 3 天發生的所有提交,看看是誰做出的。

所以當我在下面做時,下載所有天可能需要 30 天的提交時間。

git clone ssh://git.team.com:29111/jenkins_configuration

我可以說這里有一個參數嗎

--since 3d

這樣它只下載那些提交並節省一些時間?

輸出:

Cloning into 'jenkins_configuration'...
remote: Counting objects: 204746,

預期產出

Cloning into 'jenkins_configuration' last 3 day commits...
remote: Counting objects: xxx,

使用 Git 命令,您可以執行:

git clone --shallow-since=<date> ...

但是,如果您在 Jenkins 上使用 Git 插件,則沒有“shallow-since”參數,只有“depth”參數,因此您需要選擇固定數量的提交(而不是天數)。 它相當於下面的 Git 命令:

git clone --depth <depth> ...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM