Answers for "git push -u origin main returns error: src refspec main does not match any"

0

error: src refspec main does not match any error: failed to push some refs to

mkdir repo && cd repo
git remote add origin /path/to/origin.git
git add .

git commit -m "initial commit"
git push origin master
Posted by: Guest on August-07-2021

Code answers related to "git push -u origin main returns error: src refspec main does not match any"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language