Hey all,
I was wondering if there was a way to automatically prune deleted TFS branches from the Git repository. In my case, I have previously initialized a branch that existed on the TFS but has been removed since.
So running `git tfs branch` will list branches that no longer exist on the TFS and also don’t appear when I use `git tfs branch -r` or `git tfs list-remote-branches`. As a result, when I use `git tfs fetch --all`, it will try to fetch from those no longer existing branches, resulting in a `error: remote TFS repository path not found` message at the bottom. While this does not affect the usage in any way, it of course is a bit odd.
Is there a way to prune remote branches, similar to the `git fetch --prune` option? To me, it seems that the only easy way to remove the remote branches is to remove them from the `.git/config`.
Thanks!
Patrick