Git日志格式与分支但没有标签?

时间:2017-10-10 08:42:46

标签: git logging format branch

我想显示git log所有分支名称但没有标记(因为在我的回购中有很多会阻碍视图)

我使用以下格式:

git log --all --decorate --oneline --color --graph --pretty=format:'%Cred%h%Creset - %s %C(yellow)%d%Creset %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

这个黄色位有问题 - 它列出了标签和分支。

来自https://git-scm.com/docs/pretty-formats

  

'%d':引用名称,例如git-log [1]的--decorate选项

     

'%D':没有“(”,“)”包装的引用名称。

是否有一个特定的'格式化程序',我只能用它来列出分支?

0 个答案:

没有答案