[英]Git log - To get the history graph of tags
我想獲得具有非常復雜歷史的回購的標簽的歷史圖表(僅)。
特別是,它應該:
例子:
* Commit 9
* Commit 8
|\
* | Commit 7
| * Commit 6
| |\
| * | Commit 5
|/| |
* | | Commit 4
| | * Commit 3
| |/
| * Commit 2
|/
* Commit 1
如果標記了提交 1、3 和 9,則解決方案是:
* Commit 9
* Commit 3
* Commit 1
如果標記了提交 1、3、5 和 9,則解決方案是:
* Commit 8
|\
* | Commit 5
| * Commit 3
|/
* Commit 1
如果標記了提交 1、3、4、5 和 9,則解決方案是:
* Commit 9
|\
| |\
| * | Commit 5
|/| |
* | | Commit 4
| | * Commit 3
| |/
|/
* Commit 1
我找不到任何答案。 我用git log --all --oneline --graph
開始了我的調查,但后來我迷失在 git log 文檔中,谷歌也沒有幫助我。 我需要你的專業知識。
最好的問候,阿德里安
我想你想要
git log --tags --oneline --graph --simplify-by-decoration
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.