Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Pruning ===== ==== Introduction ==== See ''man git-fetch'', section "PRUNING". ==== Fetching and pruning ==== At one time, I had a couple dead remote tracking branches: <code> $ git branch -r origin/HEAD -> origin/master origin/WIP-syscall origin/master origin/proc-cmdline </code> On the next fetch, if the upstream branches no longer existed, delete the tracking branches: <code> $ git fetch --prune From https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux - [deleted] (none) -> origin/WIP-syscall - [deleted] (none) -> origin/proc-cmdline $ git branch -r origin/HEAD -> origin/master origin/master $ </code> ==== Just pruning ==== <code> $ git remote prune <name> </code> git_pruning.txt Last modified: 2019/04/04 01:59by rpjday