|
|
|
|
|
by ehfeng
2188 days ago
|
|
The name 'main' feels overloaded, just like naming the default branch 'default' or 'development', with the risk of "Who's on first?" confusion, especially when branching off branches. "What branch are you on?"
"I branched off the main development branch for this fix."
"Like...the `main` main branch or the main branch for the feature?" I like redis' rename of their default branch to `unstable`. Just like commits are tagged with the release numbers, the latest code that isn't yet versioned is by default 'unstable'. If the industry as a whole is going to make this change, I would prefer we choose a name that can be unambiguously referenced in conversation. |
|
May I suggest a name for that branch which does not conflict with other uses and is generally understood by most developers?
Merriam-Webster gives several definitions for this word, one of which seems to fit this purpose very well indeed: (noun) an original from which copies can be made, especially: a master recording (such as a magnetic tape), (adjective) being or relating to a master from which duplicates are made, (verb) to produce a master recording of (something, such as a musical rendition)You can use this one-liner to rename your confusingly-named default branch: