Git listing non-existent remotes

I recently made some changes to my remote repositories in my Git repo configuration file. I renamed the deleted names, changing my origin to another remote repo and renaming my old origin.

For example, I had this before:

[remote "origin"]
   url =  blah blah

[remote "future"]
   url = blah blah

I went in and changed them to look like this:

# formerly the origin
[remote "old-origin"]

# formerly the future repo
[remote "origin']

But now, when I type git branch -a, I see the branches listed from the old "future" console:

remotes/origin/HEAD
remotes/origin/branch1
remotes/origin/branch2
remotes/future/branch1
remotes/future/branch2
remotes/old-origin/master
remotes/old-origin/branch3

I used a draft, as well as a selection, etc., but this list is simply not updated. I did a search in my configuration file for the “future”, and nothing came of it. Are there any commands that I can run to update this list and stop looking at a nonexistent remote?

+4
1

future, .

, git remote whatever future , future. ( git remote update -p git remote prune, , .)

:

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

( rm -r .git/refs/remotes/future / .git/packed-refs, , ).

[, git config -e ( vi .git/config, :-)), , future.]

+6

All Articles