Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Error 403 in response to git push -u origin master
Hi, I'm getting the following message:
♥ git push -u origin master remote: Permission to OctoWallE/treebook_p.git denied to WallisWT. fatal: unable to access 'https://github.com/OctoWallE/treebook_p.git/': The requested URL returned error: 403
I'm running git version 2.3.2
I've tried a few times and am pretty sure it wasn't a random typo issue.
Thanks in advance for any help on this!
Okay, try running the following two commands in your terminal, replacing the obvious things:
git config --global user.name "Your Name Here" git config --global user.email "Your Email Address Here"
Then close the terminal, reopen it, and try running
git push -u origin master remote again.
Glad I can help! A lot of this is just me learning with you. I haven't really taken the time to learn the ins and outs of Git like I should have, and I'm learning about Git's internals right now as well.
This will be a long shot, but try running this command in your terminal:
mv ~/.gitconfig ~/.gitconfig_old
After that, restart your terminal and run this command, replacing the obvious:
git config --global user.name "Your Real Name Here" && git config --global user.email "Your Email Address Here"
And after that, try pushing to GitHub again. It will almost certainly ask for a username and password.
Let me know if it works!
Davenport Kaleb11,212 Points
I figured it out! You have to change your KeyChain account on the mac settings.