Fatal Error when following the tutorial video on Lesson Supplement Getting Started With Git and Github

Hi guys, got a little stuck here :

When following this tutorial to pushing my exisiting repository line with git bash: https://www.codecademy.com/article/f1-u3-git-setup

(By the way this tutorial is really out of date as the video walkthrough was posted 6 years ago, and “remote: Support for password authentication was removed on August 13, 2021.”

it gave me an error message:
remote: Permission to Shortbread94/git_practice.git denied to Shortbread94.
fatal: unable to access ‘Shortbread94/git_practice · GitHub’: The requested URL returned error: 403

Any fix?

I already made a Fine-grained personal token and used it as password and still no help.

Yea I wish they put a date on the article because I’ve seen people get this wrong before (last year).

The takeaway is that whenever trying out something, (even before codecademy in this context), I’d actually just “attempt” to read the documentation first, as that is the best source of truth for set-up and will usually be the most up-to-date.

Try the links I give here in this thread.

2 Likes

Thanks for the reply. I have read the 2 documentation from this post’s solution and still no luck.

I am now avoiding using Bash completely and tried with VSCode to link local files to my Github repositories and it worked !

Did you close and restart your bash?
Environment variables once set start by session.

I say this because Bash is a useful tool in general. There will be times when you don’t have access to VS Code and still want to do certain operations (like if you ssh into a remote terminal).

2 Likes

Yes, I even tried to restart my laptop completely, still no luck

RESOLVED!

I tried it again with the ‘Fine-Grained personal Token’ and it still giving me this error, so I restart the process and realised there’s an option of classic token. Generated, used it, worked!

1 Like