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.