Is there a handy way to get my local git repo to forget about remote branches that have been deleted? git svn fetch
doesn't "re-sync everything" like I hoped it might. My local repo was set up with using an import of the standard svn repo layout (git svn -s …
).
related: Why does git remote
not list anything on my git-svn repo?
You can remove orphaned remote branches by executing the following commands:
To remove all orphaned branches at once rather than one at a time, see the answer here.
On the first thought, I would suggest trying
git remote prune
. Excerpt from documentation:I think this should also work with a remote called
svn
...