Created
June 19, 2019 12:13
-
-
Save rcbop/357ed8c48c15986a3209e4ca88e58c46 to your computer and use it in GitHub Desktop.
prune remotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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