Notice that deleting the remote branch X through the command line employing a git thrust can even take away the neighborhood remote-monitoring branch origin/X, so It's not necessarily needed to prune the out of date distant-monitoring department with git fetch --prune or git fetch -p. However, it wouldn't hurt if you did it in any case.Ryan Kohn on