当执行 git branch -M main
报错:refname refs/heads/main not found
解决方法
执行:git add .
执行:git commit -m "init"
然后再执行:refname refs/heads/main not found
如果执行 git commit -m "init"
报错:
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got '*@DESK***-******.(none)')