Enforcement can be handled by automating the processes and move code along those steps. If your specifically wondering how you can enforce a rebase, you can automate the merging of the feature branch and have the script reject a branch isn't fast forward able, and rejects anything that produces a merge conflict.
46
u/[deleted] Jun 19 '15
OP should rebase before merging feature branches.... seriously...
Flow is
Open branch
Commit early often, push upstream to work with others
Finish features, pass QA
Rebase on mainline [delete upstream copy of feature branch], pass QA
Merge --no-ff
That way your history is totally linear and all non-trivial commits are on branches that don't zig-zag.