每次我使用'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://b@bitbucket.org/b.git (fetch)
bucket https://b@bitbucket.org/b.git (push)或
origin https://github.com/a.git (fetch)
origin https://github.com/a.git (push)
origin https://b@bitbucket.org/b.git (fetch)
origin https://b@bitbucket.org/b.git (push)如果我喜欢,可以删除'b‘(在这两种情况下),但不可能删除'a’。
我尝试删除旧的全局git文件,尝试set-url,删除本地存储库...都不起作用
发布于 2020-10-20 07:52:17
我怀疑你的全局git配置中有一个远程origin。要验证:
git config --global --get-regexp ^remote.origin.如果该命令至少返回remote.origin.url,请从全局配置中删除遥控器:
git config --global --remove-section remote.originhttps://stackoverflow.com/questions/64436287
复制相似问题