![](/img/trans.png)
[英]Why i see a commit using 'git show', but I don't see it in 'git log'?
[英]Shortcoming of git log? Why can't I see all the branches?
我在git
有一個分支,我在那個分支上,而不在master
分支上。
使用git log --graph
我只能線性地看到我在那個分支上。 但是我看不到我已經從master
分支“分裂”了。
即我看到:
* b
*
*
*
b
是我創建的私人分支,我期待看到:
*master
* / *b
*
*
*
但是我確實在gitk
看到了這一點。 通過命令行無法獲得樹的精確圖形嗎?
為了與gitk相同,您至少需要一個:
git log --branches
一個更完整的等效項是:
git log --oneline --graph --decorate --all
我在“ 如何使用git log --graph
顯示標簽名稱和分支名稱 ”中使用了更復雜的別名。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.