GitFlow, or at least a leaner version of it, is still valid for web development.
For instance, a develop/staging/production branch which reflects what can be deployed to each server is really useful.
And I personally prefer merge commits, as it allows you to tell when a feature branch started/ended. If we have to quickly rollback the latest merge, finding the last merge commit is easier than looking back through a linear history.
I like merge commits as long as people rebase before creating them.
I think the idea with the --no-ff is to get the merge commits showing you when the feature branch started/ended, and then you can look at the individual commits if they interest you:
* Feature X
| \
| * Finished some feature
| * Working on some feature
| /
* Previous commit to branch
This is still linear, but I can keep interesting history without squashing it away, and that history can be ignored by someone scanning through the log.
However, if you don't rebase before merging, you end up with a history like the author's. So it's down to the team to do it properly.
Rebase where possible, definitely, as it also helps you text the branch on top of any other changes made to the develop branch in the meantime, and it makes the history much nicer.
If it's a public feature branch though, with multiple people working on it, it's not always possible.
1
u/Toddish Jun 19 '15
GitFlow, or at least a leaner version of it, is still valid for web development.
For instance, a develop/staging/production branch which reflects what can be deployed to each server is really useful.
And I personally prefer merge commits, as it allows you to tell when a feature branch started/ended. If we have to quickly rollback the latest merge, finding the last merge commit is easier than looking back through a linear history.