'I cant change permisions to gitHub accounts in vsCode

I am trying to push a project to gitHub using my primary github account but for some reason my vsCode keeps associating the push to my secondary gitHub account. Here is the code:

PS C:\Users\excursion> git remote add origin https://github.com/cah311/excursion.git
>> git branch -M main
>> git push -u origin main
remote: Permission to cah311/excursion.git denied to slamjamhr.
fatal: unable to access 'https://github.com/cah311/excursion.git/': The requested URL 
returned error: 403

slamjamhr is the secondary github account. I am logged into the primary account in vscode so I dont know why it keeps linking to the secodary one.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source