We're using gitlab. Master branch is protected and only project owners can commit/accept merge requests to the master. Other developers send a merge request to get their code into master.
When we send for merge requests (from a feature branch to master), one of the developers review the code. If there are any suggestions/comments, the developer updates his code and the merge request shows the new commits also.
Then QA starts testing on the branch, developer fixes bugs in the same branch. When all is done and good to go, QA adds a comment in the merge request saying it is tested.
Since there are lots of commits but the feature is one, to make it easy to manage, we would like to just push it as a single commit.
Here is where the project owner and I contradict. I ask the project owner to do a git merge --squash
but he asks me to rebase my branch by squashing everything into the last commit and do a force push. Since the branch will die after this, his argument is, it is not likely to cause any trouble.
So, which is the best way to follow here?
P.S. There are is no GUI option to do a squash merge in gitlab and only option available is to merge all commits as they are.