Skip to content

Instantly share code, notes, and snippets.

@dpavlin
Created April 18, 2020 13:57
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 dpavlin/a24b6974a5fdb3aa82870b7bde083731 to your computer and use it in GitHub Desktop.
Save dpavlin/a24b6974a5fdb3aa82870b7bde083731 to your computer and use it in GitHub Desktop.
do same thing to multiple git repos
#!/bin/sh -e
ls -d */.git | cut -d/ -f1 | while read dir ; do
cd $dir
echo "# cd" `pwd`
git $*
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment