我每次开发的时候用的 git 命令流程如下:
- git checkout master
- git fetch origin master
- git merge origin/master
- git checkout -b my_dev
- coding....
- git commit -am "finished feature"
- git push origin my_dev:my_dev
可是,这样做的话我居然可以在自己的 merge request 中看到别人的 commit。但是如果我改用git pull 来同步代码的话,然后再 coding,然后推到远端,就只会看到我自己的 commit。按照我的理解,git pull 不是等于 git fetch && git merge 吗,为什么会有这么大的区别呢?希望理解的老铁解答下,多谢,多谢!
ps:我们公司使用的 gitlab,在 GitHub 中应该叫 pull request 好像。


