Skip to content

Instantly share code, notes, and snippets.

@damnit
Last active August 29, 2015 14:04
Show Gist options
  • Save damnit/f76607b740cab2e434fb to your computer and use it in GitHub Desktop.
Save damnit/f76607b740cab2e434fb to your computer and use it in GitHub Desktop.
multipull dirname
#!/bin/bash
FOLDERS=`find "$1" -maxdepth 1 -type d ! -path "$1" | sed "s|^"$1"/||"`
for i in $FOLDERS; do
printf "\e[34m$1/$i\e[0m\n"
cd "./$1/$i"
git pull
cd ../..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment