Last active
November 10, 2023 09:53
-
-
Save n1mh/0031f2d4448a4e48710214fe373d6319 to your computer and use it in GitHub Desktop.
pull all the git repos
This file contains hidden or 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
#!/bin/bash | |
DIRS=`find $HOME/git -name .git -type d` | |
for DIR in $DIRS ; do | |
cd $DIR/.. | |
echo "processing `pwd`..." | |
git checkout master | |
git pull | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment