在 master 下创建新的分支,显示新创建的分支下已经存在的提交
Creating new Branch under master, showing already existing commit under newly created branch
当我在 bitbucket 上使用 create branch
选项创建新分支时,它创建成功。
但是当我继续提交选项并从标题 COMMITS
下的下拉列表中选择新创建的分支时,它显示该新分支的提交很少。
如何在分支是新的时候提交。
请大家帮帮我。
显示的提交位于您创建新分支的分支上。假设您从 master
创建 newBranch
,结构如下:
A---B---C master
\
D newBranch
所以提交显示
D
C
B
A
如果你想显示来自 newBranch
的提交,你可以在 Branches 选项卡中查看,select 分支并在 [=] 中查看提交24=]提交 选项卡
选择你想从(master)开始的分支,然后像之前一样从这里创建分支。
另一种选择是使用命令行:
# 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
当我在 bitbucket 上使用 create branch
选项创建新分支时,它创建成功。
但是当我继续提交选项并从标题 COMMITS
下的下拉列表中选择新创建的分支时,它显示该新分支的提交很少。
如何在分支是新的时候提交。
请大家帮帮我。
显示的提交位于您创建新分支的分支上。假设您从 master
创建 newBranch
,结构如下:
A---B---C master
\
D newBranch
所以提交显示
D
C
B
A
如果你想显示来自 newBranch
的提交,你可以在 Branches 选项卡中查看,select 分支并在 [=] 中查看提交24=]提交 选项卡
选择你想从(master)开始的分支,然后像之前一样从这里创建分支。
另一种选择是使用命令行:
# 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