我最近将我的“主要”远程 git 存储库code.google从github. 然后,我将旧的originrepo 重命名为code-google并且之前创建了远程github到origin. 到目前为止,一切都很好。
但...
中仍有参考.git/refs/remotes:
code-google github origin
我试过这个,但它似乎没有工作:
$ git remote prune github --dry-run
fatal: 'github' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
为什么github改名后还在?为什么我不能处理它?我怎样才能清理我的回购?