In keeping with the times, GitHub has changed terminology from master to main,
but my TortoiseGit still uses master as the name of the main branch.
So when I push my local repo to Github, there are now 2 branches in GitHub (main and master) which causes confusion.
How to make TortoiseGit change to using main as the default?
This is set in the .gitconfig file You want
[init]
defaultBranch = main
Through tortoisegit you would do settings→Git→Edit systemwide gitconfig and change defaultBranch from "master" to "main". This requires admin. Alternatively you could edit the global .gitconfig and add the section above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With