git command to retrieve branches with tags in remote repository code example Example: git prune while fetch globally git config --global fetch.prune true