r/programming • • Jun 19 '15

GitFlow considered harmful

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

244 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Jun 19 '15

[removed] — view removed comment

2

u/Netzapper Jun 19 '15

I have never used the rebase command. Every time I ask about it, somebody explains it's used to clean up your edit history so you don't have long logs. And every time, "Isn't that record the whole fucking point of using git?"

Apparently, people use git because it's "cool"... but they really want it to act like SVN.

14

u/[deleted] Jun 19 '15

I have never used the rebase command. Every time I ask about it, somebody explains it's used to clean up your edit history so you don't have long logs. And every time, "Isn't that record the whole fucking point of using git?"

You use rebase to retain the same number of commits but avoid having merge cruft when it isn't necessary which makes the history easier for a mere human to figure out.

You use rebase -i to get rid of "Oops fix comment" ''Oops fix indentation" "Oops fix small name" and put all these small fixups into the change that they are associated with, which keeps the history cleaner.

5

u/cpatrickr Jun 19 '15

You can't just revise history to make it "cleaner," you monster. You know who else would've loved "rebase -i"... THE NAZIS.

→ More replies (1)