remote: Permission to fishercoder1534/Leetcode.git denied to MY_OLD_GITHUB_ACCOUNT
fatal: unable to access 'https://github.com/fishercoder1534/Leetcode.git/':
The requested URL returned error: 403`
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:
-
Run this command
git config credential.helper
-
If you get
osxkeychain
for above, now run this
git credential-osxkeychain erase host=github.com protocol=https
Clone remote repository again to your local folder.
If github asks you for account connect, click ok. You are all good to go!
Top comments (0)