Default branches at work

2021/04/12

$ 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

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.