I've working with a small team using the 'merge workflow' and we recently switched over to the 'rebase workflow' as per Sandofsky's article.
our current workflow:
- git checkout master, git pull origin master
- git checkout -b feature_branch, do some work and git commit -am "msg for feature branch"
- git checkout master, git pull origin master, git rebase master feature_branch
- git checkout master, git merge --squash
- git commit -am "msg for master branch", git push origin master
After rebasing the feature branch, we squash merge it into our master. What would happen if we used --no-ff instead? What is the difference between git merge --squash
and git merge --no-ff
?