DEV Community

Discussion on: why branching on git is wrong

Collapse
 
owais profile image
Owais Lone

So what if I work in the same branch for two weeks without ever pulling in changes from my co-workers? Would that be exactly the same as how you describe working in branches?

On the other hand, what if I work in my own branch but pull changes from master into my branch consistently? Wouldnt that be the same as working in master and keeping up to date?

Branches are just scratch spaces as far as development goes. Once you are happy with the code that you want to dump on your co-workers, you merge, till then you keep it in your scratch space.