I getting this error when ever I do git clone
Error :- fatal: invalid branch name: init.defaultBranch =
Tried to reinstall git (latest)
Still same error
OS :- Windows
It would appear that you have experimented with the new (2.28) init.defaultBranch
configuration value.
Assign it a proper value:
git config --global init.defaultBranch main
Got it
Enter this in terminal
git config --global init.defaultBranch master
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