简体   繁体   English

如何打印分支从主分支分支出来的子树?

[英]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.

相关问题 我没有从分支机构分支,而是从分支机构分支 - I didnt branch off of master, instead branched off of a branch 我分支了错误的分支,如何将更改移动到正确的分支? - I branched off the wrong branch, how do I move my changes to correct branch? 如何创建一个将 master 中的更改和从旧 master 分支出来的另一个分支中的更改都集成在一起的分支? - How to make a branch that integrates both changes in the master and in another branch that was branched off of older master? 意外地分支了错误的分支,当我想合并到主服务器时,我必须合并两个分支 - Accidentally branched off of the wrong branch, and when I want to merge into the master I have to merge both branches 如何创建没有提交历史的分支,该分支链接回分支的来源? - How do I create a branch without commit history, that links back to where it branched from? Git:我分支出的Change分支 - Git: Change branch I have branched off of 如何更改分支的根分支 - How to change the root branch that was branched off of 如何更改我分支的git分支? - How do I change the git branch from which I branched? <git>我已经分支了一个分支并想要推送我的更改。 我是将更改推送到原始分支还是合并两个分支?</git> - <GIT> I have branched off a branch and want to push my changes. Do I push changes to the original branch or merge the two branches? 我在git的错误分支上创建了一个分支,并将旧分支合并到master中,如何从另一个分支中删除提交? - I created a branch off of the wrong branch in git and already merged the old branch into master, how do I remove the commits from the other branch?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM