每次我使用“ git init”。一些旧的回购协议显示为来源
git remote -v
origin https://github.com/a.git (fetch)
origin https://github.com/a.git (push)
我无法删除主题
git remote remove origin
fatal: Remote-Repository not found: 'origin'
我可以添加新的遥控器
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)
要么
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)
如果我喜欢(在两种情况下),请删除“ b”,但是无法删除“ a”
我试图删除旧的全局git文件,尝试了set-url,删除了本地存储库...无济于事
我怀疑您origin
的全局git配置中有一个遥控器。核实:
git config --global --get-regexp ^remote.origin.
如果命令返回至少remote.origin.url
从全局配置中删除远程服务器:
git config --global --remove-section remote.origin
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句