Differences

This shows you the differences between two versions of the page.

Link to this comparison view

git_pruning [2019/03/08 10:02] – created rpjdaygit_pruning [2019/04/04 01:59] (current) – [Fetching and pruning] rpjday
Line 6: Line 6:
  
 ==== Fetching and pruning ==== ==== Fetching and pruning ====
 +
 +At one time, I had a couple dead remote tracking branches:
  
 <code> <code>
Line 13: Line 15:
   origin/master   origin/master
   origin/proc-cmdline   origin/proc-cmdline
 +</code>
 +
 +On the next fetch, if the upstream branches no longer existed, delete the tracking branches:
 +
 +<code>
 $ git fetch --prune $ git fetch --prune
 From https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux From https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
  • git_pruning.1552039372.txt.gz
  • Last modified: 2019/03/08 10:02
  • by rpjday