Skip to content

Instantly share code, notes, and snippets.

@rcbop
Created June 19, 2019 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcbop/357ed8c48c15986a3209e4ca88e58c46 to your computer and use it in GitHub Desktop.
Save rcbop/357ed8c48c15986a3209e4ca88e58c46 to your computer and use it in GitHub Desktop.
prune remotes
cd ${GITHUB_REPOS:?}
cd ~/kohls/github
for dir in $(find . -maxdepth 1 -type d | tail -n +2); do
cd $dir
git fetch --prune
git remote prune origin
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment