DEV Community

Discussion on: Git TIP - Why you should not keep a local master branch ?

Collapse
 
gergelypolonkai profile image
Gergely Polonkai

I do have master locally, and usually use that to track down bugs before i would open a bugfix branch for it. I’m lazy like that :)

Also, i have a neat little script called git-rebase-all. I usually have 50-something branches locally, all unfinished features by me and my colleagues. The script iterates over all my branches and rebase them to origin/master (or any other branch i specify, e.g. when i’m sure a PR gets merged really soon).