DEV Community


Posted on

Permission to https://***.git denied to your_old_account

remote: Permission to fishercoder1534/Leetcode.git denied to MY_OLD_GITHUB_ACCOUNT
fatal: unable to access '': 
The requested URL returned error: 403`
Enter fullscreen mode Exit fullscreen mode

If you ever face this problem on your mac and visual studio code terminal to push your code to git via https, do the following:

  1. Run this command

    git config credential.helper
  2. If you get osxkeychain for above, now run this

    git credential-osxkeychain erase
  3. Clone remote repository again to your local folder.

  4. If github asks you for account connect, click ok. You are all good to go!

Discussion (0)