我怎样才能在`git log`中显示分支的名字? [英] How can I show the name of branches in `git log`?

查看:130
本文介绍了我怎样才能在`git log`中显示分支的名字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 git log

的输出中显示分支的名称例如, git log --graph --all 我对提交进行了很好的概述,但是弄糊涂了哪一行是主控,哪个是我的分支。

For example with, git log --graph --all I get a nice overview of the commits, but get confused which line is master, and which is my branch for example.

推荐答案

尝试装饰选项。

Try the decorate option.

git log --graph --all --decorate

它注释了标签指向的提交或分行。

It annotates commits which are pointed to by tags or branches.

这篇关于我怎样才能在`git log`中显示分支的名字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆