DEV Community

Discussion on: How do you name your git branches?

Collapse
 
akashkava profile image
Akash Kava
+ master
+ dev
+ v2018
  + feature1
    + root
    + user1
    + user2
  + feature2/sub-feature
    + root
    + user1
    + user2

Turns out that some features are re engineered over years so root year folder helps in isolating feature names. Also root branch is created to differentiate sub feature folder as you can have sub folders inside features.

Ideally it is bad practice to have too many feature branches, and too many branches as well.

Best way is to distribute code across multiple repositories and either create packages with good package manager or use links with sub repositories.