1

I created a repository in my git hub account and came to git bash and Pasted the command:

git remote add origin https://github.com/ShreeramNew/RepositoryNow.git
git push -u origin master

And I got this Response

remote: Permission to ShreeramNew/RepositoryNow.git denied to ShreeramNew.
fatal: unable to access 'https://github.com/ShreeramNew/RepositoryNow.git/': 
       The requested URL returned error: 403

My account is Public.
I went to Credential manager, where only the default 'virtualapp/didlogical' credential was present.

Please help me to solve this.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

0

Check what credential helper you have:

git config --global credential.helper
xxx (should be "manager" or "manager-core"

Check if your PAT (classic Personal Access Token, with scope repo) is already register for that account:

printf "host=github.com\nprotocol=https\nusername=ShreeramNew" | git credential-xxx get

If not, registers it:

printf "host=github.com\nprotocol=https\nusername=ShreeramNew\npassword=ghp_yyyyyyyy...yyy" | git credential-xxx store

Then try again your git push.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250