Default branches at work
$ history | tee history.txt | wc -l 1000 $ grep ' gi' history.txt | wc -l 551 $ grep ' gi' history.txt | grep main | wc -l 29 $ grep ' gi' history.txt | grep master | wc -l 31
(I manually verified that no command mentioned both.)
At work, I’m now working in some Git repositories that use
main as the name of the default branch.
The team I’m in is using GitHub, which had earlier switched over their default for new repositories.
I do most of my Git stuff on the command line, so here’s a look at the adoption, quantized by statistical data from a snapshot of my shell history taken today. I’ll call out the following:
- The history is pretty short. Even my terminal scrollback is longer.
- The representation is just about balanced. If the primary annoyance is pulling up the wrong variant from a Ctrl+R search, I’m experiencing the peak of that now.
- Apparently I don’t do much else on the command line.
My last post was about either Cloud services, winter 2021 or How to introduce a character that won’t turn out to be a super villain. Find out which.