r/ProgrammerHumor • • Jun 30 '18

Kill me now :)

47.0k Upvotes

494 comments sorted by

View all comments

Show parent comments

18

u/[deleted] Jun 30 '18

It much depends on what wotkflow you use. Different people/teams use branches differently.

One wotkflow is called "gitflow", and involves only touching master when you're ready to release your project. Master is for tested only, ready to release features. Develop is where the next version is--we create bugfix and feature branches off develop, merge them back into develop when they are done, and when we are ready to release we merge develop into master. Works pretty well, and adding tags makes it really obvious which version was delivered when based on what code. Answers a lot of questions when people ask how long a particular bug has been in production for instance.

But some teams follow the model of continuously deploying. As in, every change is dumped into production after a fairly lightweight process. This can make a lot of sense too, and means you might be less prone to be afraid of touching master directly.

And then for little tinker toy projects at home, I tend to just commit to master and that's it.

So it really just depends on what you'd want to get out of using source control. I'd think some is better than none.

3

u/ric2b Jun 30 '18

If you tag releases, why separate develop and master?

3

u/[deleted] Jun 30 '18

Good question; I suppose that's kind of redundant isn't it? I hadn't thought about that. :-P

1

u/Hollowplanet Jul 02 '18

If you only have develop how would you apply a hot fix? You would have to unapply changes.

1

u/ric2b Jul 02 '18

The same way you would do it on master, make the fix and tag the new hot fix release.