I recently watched the “Starting a Code Base in GitHub” video and I am stuck pushing the repo from my machine to the existing repo on GitHub.
I created a repo on GitHub and followed the steps below:
echo “# code_practice” >> README.md
git init
git add README.md
git commit -m “first commit”
git branch -M main
git remote add origin https://github.com/.../code_practice.git
git push -u origin main
When I go to complete the last step I get the following error:
git push -u origin main
remote: Write access to repository not granted.
fatal: unable to access ‘https://github.com/.../code_practice.git/’: The requested URL returned error: 403
What did I do wrong and what is the fix?
Thanks!