Hard to imagine the defense of keeping "master" instead of "main" in git repos due to "cost of change". We just watched two guys fly into space and a rocket *that landed itself onto a boat*. You can change your default git branch.
3
11
4
66
Has anybody requested that git allow configuring the default? (What was the reaction?)
As I understand it, currently the name "master" is hardcoded in the C code for what happens when you create a new repository. Changing that default would would have a larger effect...
1
Yeah, I understood, I'm just wondering about doing more, and also configuring git so I don't have an extra step every time I make a new repo...
1
Another problem I just ran into -- seems like GitHub pages only works on the "master" branch (unless it's a repository old enough to have been from the "gh-pages" era?). Changing the repository's default branch doesn't let you run Github Pages off that branch.
Jun 8, 2020 · 6:46 PM UTC
2
1
1

