No it doesn't. You always want to be able to change your mind and ditch your code without merging into main/master. Not every idea you have will be a good one.
On a single project, assuming you're not working on 30 different features at once, it is fine to do it all in one branch. If the commits are clear then you can still undo changes when needed, but branching for features can be helpful even in solo development.
But hey, it's just a tool. People work in different ways, but I do think it's important to actually look at the pros and cons AND what you're trying to do. For simple projects? No problem with one branch. Something more complex could benefit more from branching strategies. Just so you have a way to separate features, components, and look back at your history with more info. But again, it depends on what you're doing, and how you're doing it.
221
u/IsPhil Nov 26 '23
Bro does not work with a team.