git fetch --prune
-p, --prune
Before fetching, remove any remote-tracking references that no longer exist on the remote. git fetch prune option doc on git-scm
The pull
command also has the prune
option (--prune
or -p
) see git-scm doc
git pull -p