【发布时间】:2017-08-14 00:26:36
【问题描述】:
我正在阅读这个post,但有些东西我不知道是不是我弄错了。
假设我在 master 分支中,而另一个开发人员正在开发一个功能,他正在一个名为 newFeature 的单独分支中工作。
如果我在我的 master 分支中,并且我拉出 master 分支,然后是他的 newFeature 分支,它们会自动合并吗?我的意思是我不必这样做
$ git merge newFeature
相反,这些将是我的命令:
$ git checkout master #We move to master branch.
$ git pull origin master #We pull the master branch to sync.
$ git pull origin newFeature #We pull the newFeature branch.
由于我在 master 分支中,并且我正在拉另一个分支,它们会自动合并吗?
【问题讨论】: