User Tools

Site Tools



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
 +On the next fetch, if the upstream branches no longer existed, delete the tracking branches:
 $ git fetch --prune $ git fetch --prune
 From https://​​pub/​scm/​linux/​kernel/​git/​torvalds/​linux From https://​​pub/​scm/​linux/​kernel/​git/​torvalds/​linux
git_pruning.1552039372.txt.gz ยท Last modified: 2019/03/08 10:02 by rpjday