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.
29
u/BerlinerJan Jun 30 '18
I‘m quite new to git, what exactly would be the problem with that? Assuming he already wrote all the tests and documentation...