"git log" 可以只显示分支(不是中间提交)吗?

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 的 "simple history" 产生。 Gitk 使用 --simplify-by-decoration 来获取它。