Skip to content

Instantly share code, notes, and snippets.

@n1mh
Last active November 10, 2023 09:53
Show Gist options
  • Save n1mh/0031f2d4448a4e48710214fe373d6319 to your computer and use it in GitHub Desktop.
Save n1mh/0031f2d4448a4e48710214fe373d6319 to your computer and use it in GitHub Desktop.
pull all the git repos
#!/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