Hi Everyone,
I have tried what seems like everything to commit my repository to github but it isn’t connecting my data to github for some reason. I am getting the below error when I try to push it to github, I’ve attached a screenshot for reference.
I’m not sure if this makes a difference but I tried using the steps that mosh provided in his tutorial in CSS part 3 lesson 43 but nothing seems to work. I watched a youtube tutorial that showed me how to create a new branch in VS Code which I tried but I didn’t understand the purpose for it, the reason I mention this is because I’m also not sure whether adding the new branch is causing me issues pushing my repo to github.
Below I’ve included another error that I’ve been receiving.
bethany@Bethanys-MacBook-Pro Moshify % git remote add origin bsolomon18/moshifyclone · GitHub
git branch -M main
git push -u origin main
fatal: remote origin already exists.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
bethany@Bethanys-MacBook-Pro Moshify %