DEV Community

Discussion on: why branching on git is wrong

Collapse
 
kobi_ca profile image
Kobi

Long discussion below so I'm not sure it was already highlighted.
I'm completely disagreeing here.
Even if you do not use branch, but just using mainline (master/develop/whatver) you are essentially in a bubble until you fetch and merge from upstream.
So there is no real diff between this and having a branch.
Having a branch makes it easier to start something like an experiment etc... to compare with a human readable string/branch vs just a SHA1 and git is really designed well around it.
The key is, whatever you choose, you need to fetch and merge (or rebase unless someone is working off your branch) as frequent as possible.