Skip to content

Rename Default Branch on Github

View on Twitter

💡 Git 2.28 introduced a global setting to rename the default branch from master to something less offensive.

You can also change this setting in your @Github account: "Settings" > "Repositories"

A good step towards a more inclusive tech. 🌈 💛

Rename default git branch with: git config --global init.defaultBranch <name>.
You might also like
Find DigitalOcean Region With Lowest Ping Read tip
Debug Requests Using a Mirror API Read tip
Easily Customise Your Shell Prompt Read tip