Git listing non-existent remotes

做~自己de王妃 提交于 2019-12-01 05:15:40

You used to have a remote named future, and you don't now.

Hence, git remote whatever future can't help, because there is no remote named future. (Normally git remote update -p or git remote prune, as in the comments above, would let you get rid of these.)

The simplest option would seem to be to delete them manually:

git update-ref -d refs/remotes/future/branch1
git update-ref -d refs/remotes/future/branch2

(or rm -r .git/refs/remotes/future and/or edit .git/packed-refs, depending on whether these refs have gotten packed).

[Incidentally, I'd also run git config -e (or vi .git/config which is what I usually really do :-) ) and make sure there are no other left-over references to the future remote.]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!