2017-04-12 99 views

回答

1

显示的提交位于您创建新分支的分支上。假设你从master创建newBranch,结构类似:

A---B---C master 
     \ 
      D newBranch 

所以提交显示

D 
C 
B 
A 

如果你想从newBranch显示提交,您可以在分行查看选项卡,选中分支并查看提交提交 Tab。

enter image description here

+0

这就是为我工作。我正在从COMMIT选项查看我新创建的分支。那就是为什么在它下面进行提交。你的解决方案是解释性的谢谢 –

0

选择您想从(主)开始,比像之前从该点创建分支的分支。

另一种方法是使用命令行:

# checkout master 
git checkout master 

# create new branch out of master 
git checkout -b <newB> 

# push the new branch to the remote 
git push origin newB 
相关问题