User Tools

Site Tools


git_pruning

Differences

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

Link to this comparison view

git_pruning [2019/03/08 10:02]
rpjday created
git_pruning [2019/04/04 01:59] (current)
rpjday [Fetching and pruning]
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.txt ยท Last modified: 2019/04/04 01:59 by rpjday