Skip to content

Instantly share code, notes, and snippets.

@unrelentingfox
Last active July 11, 2018 20:58
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 unrelentingfox/8cded979c3f0f3429213dab771d465d9 to your computer and use it in GitHub Desktop.
Save unrelentingfox/8cded979c3f0f3429213dab771d465d9 to your computer and use it in GitHub Desktop.
Run a git svn fetch on all directories in the current directory that contain a .git file.
#!/bin/bash
GREEN='\033[0;36m'
NC='\033[0m' # No Color
printf "Running git svn fetch on all directories..\n"
for d in */ ; do
cd "$d"
if [ -e ".git" ]; then
printf "${GREEN}$d${NC}\n"
git svn fetch
wait
fi
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment