This is our development workflow:
My problem is at step 3 & 4. The client has access only on the staging server, so in order for him to see the changes I have to merge the topic branch into a develop branch and push it to the staging server and I usually don't merge only 1 branch, but on average 3 - 4.
If the client rejects the changes and he needs further modifications then the developer fixes the problems in the same topic branch and I have to remerge into develop.
By remerging a topic branch multiple times into develop I loose track of that issue in the history. (sometimes resulting in conflicts too)
Is this a 'healthy' development workflow? What are your suggestions, improvements?
If the client rejects the changes and he needs further modifications then the developer fixes the problems in the same topic branch and I have to remerge into develop.
I would rather revert (as in git revert) the rejected change in the development branch, and wait for the developer's fix.
by using git revert, I only add new commits, instead of changing the history (with rebase or a git reset)
That way, the next commit (of the same feature) should be easily merged again in development branch.
Simply introduce a staging branch, that is dirty and no one is allowed to ever branch of it.
fetch and a reset --hard origin/branchdevelop once in a while to make sure your have all it’s changes. If you are not currently having any reviews (=staging should be in sync with develop), reset staging to develop instead (git checkout staging; git reset --hard develop)git reset --hard HEAD~4) without consequences if a change broke something etc.This way, you won’t have to worry about producing a nice history in a process where you don’t really care about history (showing stuff to clients) and your develop branch gets a very clean history.
In case you are worried about a having to resolve merge conflicts multiple times, have a look at git’s rerere feauture
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With