1

When I do a git push I get this error:

$ git push -vv
Pushing to https://github.com/...
remote: Permission to ... denied to foobar.
fatal: unable to access 'https://github.com/...': The requested URL returned error: 403

What I notice is that foobar user is not my user:

$ git remote -v
origin  https://github.com/... (fetch)
origin  https://github.com/... (push)

My configured github user is someone else:

$ git config github.user
ThisIsMe

$ git config --local github.user

Also that git module where I am have no reference to foobar in .git/modules/ext/config

Any clues?

nowox
  • 25,978
  • 39
  • 143
  • 293
  • Possible duplicate of [Permission denied error on Github Push](https://stackoverflow.com/questions/17857283/permission-denied-error-on-github-push) – tripleee Nov 01 '19 at 10:01
  • I don't think you can push to https, try forking via the ssh URL and try again. – tripleee Nov 01 '19 at 10:02

1 Answers1

6

if you are using Windows go to :

control panel > user accounts > credential manager > Windows credentials > Generic credentials

Next remove the Github keys. :)