当传递给寻呼机时(git log | less
, watch git log https://stackoverflow.com/q/62803231/9157799等),则(HEAD -> master, origin/master, origin/HEAD)
没有出现。
它被称为参考名称。它不会显示,因为如果我们不指定--decorate
, git log
将使用--decorate=auto
默认情况下。
From the docs https://git-scm.com/docs/git-log/en#Documentation/git-log.txt---decorateshortfullautono:
如果指定了自动, then 如果输出要发送到终端, 显示参考名称就好像给出了short,否则 https://stackoverflow.com/q/56694961/9157799没有显示参考名称。选项 --decorate 是 --decorate=short 的缩写。如果配置的话,默认为 log.decorate 的配置值,否则,自动.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)