![](/img/trans.png)
[英]Compare two git branches without intermediate commits (i.e. only commits that are accessible from the branches)
[英]Can “git log” show branches only (not the intermediate commits)?
我希望能夠看到我所有分支之間的關系。
Git日志是一件很美的事:
git log --graph --all --format=oneline
它產生的輸出非常冗長(因為我傾向於在每個分支上進行大量的小提交)。 我正在尋找的是一種只顯示與分支頭部相對應的提交的方法(只是沒有提交摘要的分支名稱很好)
是否有git log
或其他git
命令的標志?
你是在--no-walk
選項之后。 (也是 - --branches
而不是--all
,我猜)。
從評論中,您希望輸出gitk的“簡單歷史”產生。 --simplify-by-decoration
使用--simplify-by-decoration
來獲得它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.