Please note: I know this question may seem similar to this one and perhaps others, but I assure you it is not a duplicate because I was able to pinpoint a more specific problem than those other questions, and I believe my specific problem commands a unique/distinct answer.
Mac OSX 10.13.6 here.
I am a committer on a few different git/GitHub repositories. I have made several commits to these repos using once GitHub user (let's call it "some.random.dev1.example.com
" or SRD1 for short). I now need to make some commits to the same repos but from a different GitHub user, let's say "some.random.dev2.example.com
" or SRD2) from the same machine.
So I updated my user.name
, user.email
and user.username
fields in ~/.gitconfig
to match those for my SRD2 user. I then, for good measure, cleaned out 2 different github.com keys in my OSX Keychain Access manager.
I also removed two old SSH and GPG keys that were associated with my SRD1 user, and replaced them with two new ones associated with my SRD2 user.
I just went to pull one of the repos (to pull down any changes made by other developers in the last few months) and I got:
$ git pull
remote: Repository not found.
fatal: repository 'https://some.random.dev1.example.com@github.com/IdeaEvolver/cutter-platform-app.git/' not found
So it seems that when I do a git pull
on a repo, its defaulting (somehow) to pull with my some.random.dev1.example.com
user (which no longer has access to the repo). I want to be using only my SRD2 user from here on out. How do I override this default, and where is this default stored?