Default branches at work


$ history | tee history.txt | wc -l
$ grep '  gi' history.txt | wc -l
$ grep '  gi' history.txt | grep main | wc -l
$ grep '  gi' history.txt | grep master | wc -l

Default branch name representation in shell history. main: 29, master: 31, other git: 491, non-git: 449

(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:

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.