remove unused remote branches to local git fetch origin --prune remove unused remote tags to local git fetch --prune --prune-tags origin