为什么当我创建一个新分支并对其进行提交时,我没有在我的图表中看到它分支。
这是我正在做的代码:
git init
git add .
git commit -a
... other commits in here
git checkout -b mynewbranch
git add .
git commit -a
git checkout master
git merge mynewbranch
git add .
git commit -a
这是我在执行 git log --graph 时希望在脑海中看到的
* 47926e1 This is a commit back on master
\
* f3dc827 How come i am not seeing a branch in my tree
* 1cd3018 This should be on my new branch
/
* 47f3716 This is my third commit
* 878b018 This is my second commit
* 2db9f83 Initial commit
但我看到了这个:
* 47926e1 This is a commit back on master
* f3dc827 How come i am not seeing a branch in my tree
* 1cd3018 This should be on my new branch
* 47f3716 This is my third commit
* 878b018 This is my second commit
* 2db9f83 Initial commit
我不明白什么吗?