Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remote permission to denied to user2

I made my new account "kim2" but when I push it with "kim2"
It gives following error:

kim-computer:Kaggle-A-Z kim2$ git push kim2 master
remote: Permission to  kim2/Kaggle-A-Z.git denied to kim1.
fatal: unable to access 'https://github.com/kim/Kaggle-A-Z.git/': 
The requested URL returned error: 403

I changed the global user.name and global user.email to new user ID

I'm using HTTPS not SSH.
Any Solution?

like image 523
jojo kim Avatar asked Dec 13 '22 22:12

jojo kim


1 Answers

I also had the same issue with Mac, I hope this would be helpful for the mac users.

  1. Open Keychain Access app.
  2. Search for github.com
  3. Delete the information of other users

The problem is Mac tries to cache the user name , so my account was trying to commit with the previous credentials.

like image 187
Nirojan Selvanathan Avatar answered Dec 24 '22 14:12

Nirojan Selvanathan