Getting error when trying to push commits
Closed this issue · 3 comments
devang-ids commented
cause of the error:
git push -u origin main
error:
error: src refspec main does not match any
error: failed to push some refs to 'https:/...'
can be easily fixed by adding git branch -M main
to the script
jh3y commented
Hey @devang-ids 👋
Thanks for pointing this out. Is this because you don't have a main
branch on that repository? This is something I have set as the default branch name for git/Github. Did you try the script with that line added and it worked?
I'll happily make the change or accept a PR for it 🚀
Jhey ʕ •ᴥ•ʔ