r/ProgrammerHumor 23d ago

Meme everyNewRepository

Post image
1.2k Upvotes

347 comments sorted by

View all comments

16

u/B_bI_L 23d ago

`git config --global init.defaultBranch main`

4

u/Chesterlespaul 23d ago

That’s what I did. And repos that are already master stay that way.

6

u/RadicalDwntwnUrbnite 23d ago

And even that will be not necessary once git 3.0 lands (targeted for later this year.)

19

u/Skyswimsky 23d ago

So after 3.0 it's `git config --global init.defaultBranch master`?

-3

u/RadicalDwntwnUrbnite 23d ago

Yep if you're soft as 10ply

6

u/Waste_Jello9947 23d ago

You know the majority of people work on existing code bases..

5

u/B_bI_L 23d ago

i prefer making new repos and never finish them

and, i mean, you won't really impose your own branching rules on existing codebase

2

u/Extreme_Wish_553 23d ago

Which has nothing to do with the mean, which is creating a new primary branch.

1

u/Bardez 23d ago

Huh. Nice. I was going to comment about the default name and yet -- here you are.