当我在终端中创建一个新分支时,为什么图表不显示从 master 分支分支出来的新分支? [英] Why doesn't the graph display a new branch branching off from the master branch, when I create a new branch in terminal?
问题描述
当我在终端中创建一个名为testing123"的新分支时,为什么 Sourcetree 中的图形不显示从 master 分支分出的新分支?
Why doesn't the graph in Sourcetree display a new branch branching off from the master branch , when I create a new branch called "testing123" in terminal ?
Sourcetree 识别出新分支,但它不会从图中的主分支分支出来.为什么会这样?如何让 Sourcetree 图显示从 master 分支出来的新分支?
Sourcetree recognises the new branch but it doesn't branch off from the master branch in the graph. Why is this happening ? How can I make Sourcetree graph display the new branch branching off from master?
推荐答案
确实如此:它有一个来自 master
的新提交.
It does: it has one new commit done from master
.
这意味着您已经检查了新分支 testing123
,完成了一次提交并推送了它(因此 origin/testing123
).
That means you have checked out the new branch testing123
, done one commit and pushed it (hence origin/testing123
).
您没有看到任何分支",因为 master
上没有新的提交,因为 testing123
已经创建:testing123
的历史> 与 master
保持线性".
You don't see any "branching" because there is no new commit on master
since testing123
has been created: the history of testing123
remains "linear" with the one of master
.
在 master
上创建新提交后,您将看到一个分叉.
Once a new commit will have been created on master
, you will see a fork.
造成这种情况的 2 个可能原因:
2 possible reasons for this:
- 您在日志视图的顶部选择了当前分支",或者
- 分支实际上并没有导致图中的发散.
一个分支只是一个标记,除非在每个分支中实际发生了不同的提交,并且没有共享,否则图中不会有分叉.
这篇关于当我在终端中创建一个新分支时,为什么图表不显示从 master 分支分支出来的新分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!