I was recently trying to push to a new github repo, and encountered an error.
/path/to/repo$ git push -u origin master
remote: Permission to JamesCrowleyTech/Chat-App.git denied to JamesCrowleyTech.
fatal: unable to access 'https://github.com/JamesCrowleyTech/Chat-App.git/': The requested URL returned error: 403
I thought this was very strange because I am signed in with the same account as always.
These are my config settings (I am using a personal access token).
/path/to/repo$ git config -l
user.name=JamesCrowleyTech
user.email=jamescrowley467@gmail.com
credential.username=JamesCrowleyTech
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://<myPersonalAccessToken>@github.com/JamesCrowleyTech/Chat-App.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
All suggestions are appreciated.