Skip to content

Instantly share code, notes, and snippets.

@rodesousa
Created June 17, 2015 11:09
Show Gist options
  • Select an option

  • Save rodesousa/561df35bf65922b99910 to your computer and use it in GitHub Desktop.

Select an option

Save rodesousa/561df35bf65922b99910 to your computer and use it in GitHub Desktop.
#/bin/bash
exclude="log\|other"
for directory in `find * -maxdepth 0 -type d`
do
if [[ "`echo $directory | grep \"$exclude\"`" == "" ]]
then
echo "### repo $directory =>"
cd $directory
git "$@"
echo ""
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment