DEV Community

loading...

Discussion on: Renaming your master branch to main in GithubπŸ‘©β€πŸ’»

Collapse
goodevilgenius profile image
Dan Jones

I will continue to maintain that main is not a useful name. Neither is master, and has other problematic implications. So, I'm certainly not advocating using master.

The thing is, we name all of our other branches according to their purpose, so why not the default branch? In my opinion, the default branch should also be named according to how it's used.

For projects where the default branch represents the stable code, it should be named something like stable, or prod. I usually use prod for continuously deployed web apps, and stable for versioned projects.

For projects where the default branch represents the main development branch, it should be named develop or development.

Collapse
alec profile image
Collapse
goodevilgenius profile image
Dan Jones

I do. In all my projects. πŸ˜ƒ

Collapse
tracycss profile image
Jane Tracy πŸ‘©πŸ½β€πŸ’» Author

Thanks for your input, Dan. βœ”
Yes, it's true.
Different teams or organization name their branches differently. πŸ’―πŸŒŸ
Develop branch is common especially for features underdevelopment etc.

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app