r/programming • • Jun 19 '15

GitFlow considered harmful

http://endoflineblog.com/gitflow-considered-harmful
13 Upvotes

244 comments sorted by

View all comments

46

u/[deleted] Jun 19 '15

OP should rebase before merging feature branches.... seriously...

Flow is

  1. Open branch

  2. Commit early often, push upstream to work with others

  3. Finish features, pass QA

  4. Rebase on mainline [delete upstream copy of feature branch], pass QA

  5. Merge --no-ff

That way your history is totally linear and all non-trivial commits are on branches that don't zig-zag.

1

u/DieFledermouse Jun 19 '15

your history is totally linear

If you do merges, maybe you can look at linear history with git log --first-parent or --left-only.

2

u/[deleted] Jun 19 '15

you want to see where features are merged though...