【发布时间】:2012-12-06 22:08:45
【问题描述】:
我尝试git log 和--decorate 和--source 选项。但是还是获取不到commit2f3cb60和d7e7776的分支名,为什么?
#git log 2f3cb60 --graph --decorate --source --all --oneline
...
* | | | 1920ad5 refs/heads/gpio support gpio lib
| |/ /
|/| |
* | | 2f3cb60 2f3cb60 fix
* | | d7e7776 2f3cb60 fix
| |/
|/|
* | aa4dcfb refs/remotes/origin/httpd support
* | cfc839d refs/remotes/origin/httpd add folder
如何显示带有分支名称的 git log?
【问题讨论】:
-
上面的 ... 显示了这两个“修复”提交所在的分支,如果你按照图表向上的话。
-
你可能想试试
--branches而不是--all
标签: git git-branch git-log