![](/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.