Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

alborz
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
alborz
Full Stack JavaScript Techdegree Graduate 30,885 Points

Getting a 403 error when trying to push local project up to GitHub

Whenever I try to push up a local project up to my GitHub using git push origin master I get a 403 error.

git remote -v returns the correct remote repo URL, but pushing the project returns the following:

remote: Permission to username/random-quote-generator.git denied to username.
fatal: unable to access 'https://github.com/username/random-quote-generator.git/': The requested URL returned error: 403

Thanks!

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Alborz M.,

The username fragment of the URL needs to be changed to your GitHub username that you use to sign into your account on github.com, GitHub have a great tutorial on how to update your remote URL's with the git command.

https://help.github.com/articles/changing-a-remote-s-url/

Hope that helps.