【发布时间】:2023-04-01 18:05:02
【问题描述】:
当我跑步时
> git log --oneline
我得到的输出看起来像这样
abcdef0 (head, branch, origin/branch) comment
0987654 different comment
1234567 (different-branch, origin/branch) third comment
但是一旦我将输出通过管道传输到任何东西(例如> git log --oneline | cat),分支名称就消失了
abcdef0 comment
0987654 different comment
1234567 third comment
这意味着我不能 grep,或添加行号,或类似的东西。
(它也缺少颜色和less 样式行为,但我今天不关心这些)
这是我可以通过命令行参数重新启用的功能吗?
【问题讨论】:
标签: git format git-branch git-log