[英]Globbing in git log to show certain branches
我有一個有很多分支的項目,我只想記錄這些分支:
foo/bar
foo/bar-baz
origin/foo/bar
origin/foo/bar-baz
我需要什么球形圖案? 我已經嘗試過foo/bar*
git log --decorate --oneline --graph foo/bar*
僅顯示foo/bar
和foo/bar-baz
。
感謝ElpieKay提供的解決方案。 這可以解決問題:
git log --decorate --oneline --graph --glob=*foo/bar*
通過查看.git/
中的refs/
文件夾,您可以更好地了解如何進行glob。 heads/
包含對glob所查看的本地分支的引用; 同樣, remotes/
包含對原始分支的引用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.