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
Sorry for not being clear, I meant for renaming the default on one's own repo.
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
Come to think of it, a shell script might be a intermediate solution. Not sure if it's been requested. But it seems like a good idea to have that configurable! Though my knowledge of C is that it's a letter. 😉
2
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.
2
1
1
Oh, I guess "repository old enough" isn't the issue -- if you make a gh-pages branch you can still use gh-pages, but it seems like the only options are gh-pages or master. I guess I'll make yet more gh-pages branches even though I'd rather not use that name either...

Jun 8, 2020 · 6:57 PM UTC

1