为什么当我在终端中创建一个新分支时,图形不会显示从主分支分支的新分支? [英] Why doesn't the graph display a new branch branching off from the master branch, when I create a new branch in terminal?
问题描述
为什么Sourcetree中的图不显示从master分支分支的新分支,当我在终端中创建一个名为testing123的新分支?
Sourcetree会识别新的分支,但它不会从图中的主分支中分支出来。这是为什么发生?我如何让Sourcetree图形显示从主控分支的新分支?
它有:从 master
完成一次新的提交。 b
$ b
这意味着你已经检出了新分支 testing123
,完成了一个提交并将其推送(因此origin / testing
)。
您没有看到任何分支,因为 master
testing123
已创建: tests123
的历史记录与 master
。
一旦在 master $ c $上创建了新的提交c>,你会看到一个分支。
另见 SourceTree上的此线程:
2个可能的原因:
- Y您在日志视图的顶部选择了当前分支,或者
- 分支实际上并没有在图表中产生分歧。
分支是只是一个标记,除非在那之间没有共享实际发生的不同实际提交,否则图形中将不会有分支。
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 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?
It does: it has one new commit done from master
.
That means you have checked out the new branch testing123
, done one commit and pushed it (hence origin/testing123
).
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
.
Once a new commit will have been created on master
, you will see a fork.
See also this thread on SourceTree:
2 possible reasons for this:
- You have 'Current Branch' selected at the top of the log view, or
- The branches didn't actually cause a divergence in the graph.
A branch is just a marker, unless different commits actually occurred in each that were not shared between then, there won't be a fork in the graph.
这篇关于为什么当我在终端中创建一个新分支时,图形不会显示从主分支分支的新分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!