2012-02-22 72 views
0

我最近嘗試在git中使用分支,但是當他們工作的都是正常的時候,無論我做什麼,我都無法顯示我的分支和合並圖。我試過咯咯的Ubuntu和gitk - 所有但他們都不在這個NETTUTS +教程http://net.tutsplus.com/tutorials/other/easy-version-control-with-git/

我在工作類型爲表明

$ git log --graph #Sorry my sreenshot is missing h at the end 

但不是這個......

enter image description here

...我得到這個...

My output

我會很高興能與快速回復...

這裏是 '$ gitk --all' 輸出

enter image description here

+0

你怎麼能指望它看?你確定你有一個分支嗎? – Andy 2012-02-22 20:19:53

+3

您目前有'BigIdea'簽出。也許可以嘗試'git log --graph master'來查看'master'的歷史(假設你甚至將'BigIdea'合併到'master'中)。 – 2012-02-22 20:25:49

+0

@TimBielawa是的,我有一個分支在這裏,因爲結賬工作,所以合併,但它仍然顯示只顯示一行中的所有分支。我要添加一個'gitk -all'輸出的截圖...... – mgoszcz2 2012-02-23 20:19:28

回答

3

你可能會尋找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>. 

所以,如果你有分支機構abc,這是因爲如果你告訴混帳,以顯示日誌和圖表以這種方式:

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. 
... 

等等......

相關問題