1

I am getting next error:

$ git push -u origin master
remote: Permission to teddyruns/medals.git denied to franciswebdevelopment
fatal: unable to access 'https://github.com/teddyruns/medals.git/': The requested URL returned error: 403

I have checked my global user name and email, and created a new ssh key, but franciswebdevelopment is my old account,

I have no idea why I can't push to my new account,

Does anybody have any idea where I am going wrong?

Oleksii
  • 1,498
  • 19
  • 25
Teddy T
  • 11
  • 2

2 Answers2

1

but franciswebdevelopment is my old account

That means you probably have a git crendential helper which has cached the credentials franciswebdevelopment for github.com.

git config credential.helper

If that is the case, remove that entry:

git credential-manager delete https://github.com

Then try again (but not right now, with HTTPS or SSH, because GitHub is experiencing a major outage)

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
-1

Github is currently experiencing issues,

Click here to check their status.

  • I did mention it in my answer, but the issue experienced by the OP is not directly related to that outage: it is a *local* credential caching issue. – VonC Oct 22 '18 at 05:15