Mac*_*cki 0 linux git ubuntu logging graph
我最近尝试在 git 中使用分支,但是虽然它们工作正常,但无论我做什么,我都无法显示我的分支和合并的图表。我已经在 ubuntu 和 gitk -all 上尝试过 Giggle,但它们都没有像 nettuts+ 教程中所示那样工作。我已经在 ubuntu 和 gitk -all 上尝试过 Giggle,但没有一个像 nettuts+ 教程http://net.tutsplus.com/tutorials/other/easy-version-control-with-git/
我输入
$ git log --graph #Sorry my sreenshot is missing h at the end
Run Code Online (Sandbox Code Playgroud)
但不是这个...

...我明白了...

如果能快速回复我真的很高兴......
这是 ' $ gitk --all ' 的输出

您可能正在寻找git log --graph --all,同样gitk,我的 shell 中有一个别名:
alias gk='gitk --all'
Run Code Online (Sandbox Code Playgroud)
就是为了这个目的。
从git help log
--all
Pretend as if all the refs in refs/ are listed on the command line as <commit>.
Run Code Online (Sandbox Code Playgroud)
因此,如果您有分支a、b和c,就好像您告诉 git 以这种方式显示日志和图表:
git log --graph a b c
Run Code Online (Sandbox Code Playgroud)
本质上,git log允许您列出您可以在想要查看日志的内容中引用的任何对象。您甚至可以在一个文件或多个文件上使用它......
$ git log --oneline python-taboot.spec
c96d546 Straighten out the Makefile. Hey -- make rpm works now! Update a lot of docs. Fixes #34 - Taboot 'edit' mode should hint at the file type and give instructi
ea0d60b Version bumpskies to 0.4.0-1beta
a95cfbf Automatic commit of package [python-taboot] release [0.3.2-1].
d9e3ca6 Make python-argparse a Requires for el6 as well
ea7ed54 Automatic commit of package [python-taboot] release [0.3.1-1].
69eaea9 Add conditional Requires on python-argparse. Update README and release notes.
...
Run Code Online (Sandbox Code Playgroud)
等等...
| 归档时间: |
|
| 查看次数: |
2207 次 |
| 最近记录: |