comp426-2022-fall / a02

Create a command line Node.js package that ingests API data from Open-Meteo
GNU Affero General Public License v3.0
0 stars 0 forks source link

I can't do git push, it worked a few days ago #18

Closed Leo-TK1 closed 1 year ago

Leo-TK1 commented 1 year ago

I can't do git push to push my work onto GH. It was working just fine a few days ago.

When I do 'git push' it asks for my username and password. Once I put that in, it still fails to recognize me.

I tried adding a new SSH key but that still didn't fix the error.

vennila-t commented 1 year ago

Hey would you mind adding a screenshot of your error message as well? Easier to troubleshoot that way

vennila-t commented 1 year ago

Based on our interaction in OH, you have your GitHub origin set to HTTPS. You may need to update the origin for your repository to SSH if it is set to HTTPS. Do this to switch to SSH:

git remote -v git remote set-url origin git@github.com:USERNAME/REPONAME.git