I recently moved my 'main' remote git repository from code.google
to github
. Then, I renamed old origin
repo to code-google
and previously created remote github
to origin
. So far so good.
But...
There are still references in .git/refs/remotes
:
code-google github origin
I tried this, but it does not seem to be working:
$ git remote prune github --dry-run
fatal: 'github' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Why is github still there since it was renamed? Why am I not able to dispose of it? And how can I clean up my repo?