I am new to VSCode and Github and I use Windows 10. I have 2 Github accounts, one "Private" and one "Work". I started out with "Private" but I am not using it anymore. I linked the VSCode account to "Work" and verified it has done this correctly.
Now, when I push a file from local to remote, it keeps pushing it with "Private". So I checked how to solve this and changed 2 things:
- In Git bash, I typed:
git config --global user.name
andgit config user.name
, and found out it said "Private" for both. So I entered:git config --global user.name "Work"
andgit config user.name "Work"
, which changed this to "Work" for both - On my laptop, I went to Start -> Control Panel -> User accounts -> Manage Your Credentials -> Windows Credentials and removed the credentials for "Private"
I hoped these 2 actions would solve the issue, but unfortunately it doesn't. Is there anywhere else where I should change something?