I create a repository in Github and on my local machine I ran the code:
git init
git branch -m main
git remote add origin https://github.com/.../Project.git
git push -u origin main
Instead of using master
branch I want to use main
branch.
When running git push -u origin main
I get the error:
failed to push some refs to 'https://github.com/.../Project.git'
What am I doing wrong?