This is an old revision of the document!
Overview
Fetching, pulling, pushing and pruning.
Pruning
Introduction
See man git-fetch, section “PRUNING”.
Pruning deleted upstream branches
$ git branch -r origin/HEAD -> origin/master origin/WIP-syscall origin/master origin/proc-cmdline $ 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 $