你可能會尋找git log --graph --all
,同樣與gitk
,我在我的外殼中有一個別名:
alias gk='gitk --all'
就是爲了這個目的。
從git help log
--all
Pretend as if all the refs in refs/ are listed on the command line as <commit>.
所以,如果你有分支機構a
,b
和c
,這是因爲如果你告訴混帳,以顯示日誌和圖表以這種方式:
git log --graph a b c
從本質上講, 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.
...
等等......
你怎麼能指望它看?你確定你有一個分支嗎? – Andy 2012-02-22 20:19:53
您目前有'BigIdea'簽出。也許可以嘗試'git log --graph master'來查看'master'的歷史(假設你甚至將'BigIdea'合併到'master'中)。 – 2012-02-22 20:25:49
@TimBielawa是的,我有一個分支在這裏,因爲結賬工作,所以合併,但它仍然顯示只顯示一行中的所有分支。我要添加一個'gitk -all'輸出的截圖...... – mgoszcz2 2012-02-23 20:19:28