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

Github/ Git Push Error

Preface with - This may be a very stupid question - I am a noob.

So I'm having a problem where I can't push to my git fork repository

This is the error:

remote: Permission to udacity/frontend-nanodegree-arcade-game.git denied to Hamorim85. fatal: unable to access 'https://github.com/udacity/frontend-nanodegree-arcade-game.git/': The requested URL returned error: 403

I've gotten the ssh key and still no luck.

I've tried git push origin master - no luck either. Any Ideas?

Hi Hugo. Could it be there are some extra characters in the url you're trying to access?

Try to remove the ' before and the ': after.

Ryan Drake
Ryan Drake
12,587 Points

403 is a forbidden error, typically related to unauthorised access.

Please check with Udacity team if you have been added correctly. My friend is also doing this same course and hasn't had an issue.

Have you cloned the project to your own repo and tried pushing it up there, then merging it in as a pull request? I'd suggest just raise a Github issue with the project if you're still unable to push your code up!

1 Answer

Yes it was syncing to the wrong repo, to one i didn't have permission.

I did a

git remote set-url origin https://github.com/Hamorim85/frontend-nanodegree-arcade-game.git

it pushed.