For example, if you run git remote add repository and then git fetch repository it will populate all branches found on the repo. Is there a way to reset the list of branches to the same as when you initially added it, with none fetched?
PHPStorm by default lists every remote branch that has been fetched. This list has gotten rather long and I would like to remove listed branches without actually deleting them or the remote (so if I do want them back in the future it won't require me re-adding the repo).