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 trialalborz
Full Stack JavaScript Techdegree Graduate 30,885 PointsGetting 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
26,676 PointsHi 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.
alborz
Full Stack JavaScript Techdegree Graduate 30,885 Pointsalborz
Full Stack JavaScript Techdegree Graduate 30,885 PointsHi Chris Upjohn,
the
username
fragment actually has my GitHub username; I've just switched it for a placeholder for the purpose of asking the question on the forum.Chris Shaw
26,676 PointsChris Shaw
26,676 PointsAh, have a read of the following Stack Overflow post, should hopefully help you out.
http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed
alborz
Full Stack JavaScript Techdegree Graduate 30,885 Pointsalborz
Full Stack JavaScript Techdegree Graduate 30,885 PointsThat worked. Thanks!
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsGlad to hear.