Yes, another git flow question .. :(
I know well the "standard" git redirect stream:
- The developer creates a tracking branch (say, "featureA") from the upstream branch (say, "master")
- Developer code, commits, pulls with rebase, codes, commits, pulls with rebase, etc.
- Code is executed, developer squash commits and pushes to master
The problem I am facing is that this leaves no room for code verification before merging with the wizard . Reviewers see changes only when they are on the main computer, so if the developer needs to configure something, there will be many commits for this function on this function. Ideally, there is only one.
A few options that I know will solve this, but are not ideal:
- Ask the developer to direct the function branch to the remote computer. The problem is that after they are reinstalled from the host, the push should be a strong push, which, although probably safe in this case, is not what I want to be commonplace.
- Do not rearrange upstream changes to function branches, merge them. With this, I cannot crush the function branch and push the commits back to the main one (right?)
- Use gerrit / github. I have to guess that there is a way to achieve this in pure git?
Is there a better way?
source share