On vscode, using wsl terminal, I was setting the global the default branch as main as shown below,
git config --global init.defaultBranch main
Now, inside my project folder, when I do git init and check git status the default branch is still master. What else I need to do to make the default branch as main?
Even .gitconfig, contains defaultBranch as main:
cat ~/.gitconfig
[init]
defaultBranch = main
Current git version:
git version2.25.1