I have 2 different GitHub accounts and I am running Ubuntu.
I was following answers on Stack Overflow like this one and was getting all kinds of grief with the wrong key being used. Trying to narrow down the problem ...
- I deleted all the keys in
~/.ssh
- still getting the wrong user when pushing to Github. - I deleted the
known_hosts
andconfig
files in~/.ssh
. - the same as above. - I deleted all the keys in both GitHub accounts - I can still git push!
- I rebooted my system - but I still can push to Github!?!
Where are these keys now stored? Depending what I place in my local .git/config
I can get the GitHub account I want, but am mighty curious about where and how these keys get checked! I would have figured that doing a git push
now would fail.
Edit: I can commit to the Github I want - I used "none" for global git config email and set the local git config to the email I want to commit under.
I spun up another partition (different Ubuntu version) on my same machine - did a git clone, and can commit! Didn't ask for my ssh key - just my github user/pass. There is no ssh key on my github account at the moment. Somehow it still remembers, I'll just accept that.