[英]How do I print the subtree where branch branched off master?
We have a project in git with lots of branches/tags. 我们在git中有一个项目,其中有很多分支/标签。
We have a branch master and a branch b1 off master. 我们有一个分支母版和一个分支b1脱离母版。
How do I get git to show me the commit where branch b1 branched off master. 我如何获得git向我展示分支b1从master分支出来的提交。 Can I get to print something like: 我可以打印以下内容吗?
A
|
B <--E<--F<--b1
|
C
|
D <-- master
or just the tree below B 或只是B下面的树
To get the tree below b1 you could do git log b1 --not master
. 要获得b1以下的树,可以执行git log b1 --not master
。
Useful when comparing branches is git log --graph b1 master
to see your picture as a graph. git log --graph b1 master
在比较分支时很有用,可将您的图片视为图表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.