When initializing a github project
Follow the github prompts to execute
git branch -M main
Returns error:
error: refname refs/heads/master not found
solve:
first
git add.
git commit -m “init”
And then execute
git branch -M main
When initializing a github project
Follow the github prompts to execute
git branch -M main
Returns error:
error: refname refs/heads/master not found
solve:
first
git add.
git commit -m “init”
And then execute
git branch -M main