I've made a small change to my git configuration, which anyone should be able to do today. I've updated my git to the latest 2.28. I think is a good step for my workflow, as seeing and repeating master on conference calls was a bit aggravating for me.
On Windows:
git update-git-for-windows
Run through the prompts.
On Ubuntu:
Canonical repos might not be up to date, so you will need a ppa repo fortunately there is one for git:
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git -y
On Mac:
brew ugprade git
I no longer have a mac, so can't confirm this is the latest.
Check version, and update your default branch name. Mine is main, but yours can be something else like latest, production, etc.
git --version
git config --global init.defaultBranch main
Top comments (1)
Thanks! I just updated in my pc here, and I think it's a good change switch from master to main. :D