Reputation: 625
Every time I use 'git init'. some old repos appear as origin
git remote -v
origin https://github.com/a.git (fetch)
origin https://github.com/a.git (push)
I can't remove theme
git remote remove origin
fatal: Remote-Repository not found: 'origin'
I'm able to add new remotes
origin https://github.com/a.git (fetch)
origin https://github.com/a.git (push)
bucket https://[email protected]/b.git (fetch)
bucket https://[email protected]/b.git (push)
or
origin https://github.com/a.git (fetch)
origin https://github.com/a.git (push)
origin https://[email protected]/b.git (fetch)
origin https://[email protected]/b.git (push)
and remove 'b' if I like (in both cases), but it's not possible to remove 'a'
I tried to remove old global git files, tried set-url, removed the local repo ... none worked
Upvotes: 2
Views: 189
Reputation: 94397
I suspect you have a remote origin
in your global git config. To verify:
git config --global --get-regexp ^remote.origin.
If the command returns at least remote.origin.url
remove the remote from the global config:
git config --global --remove-section remote.origin
Upvotes: 1