Skip to content

Instantly share code, notes, and snippets.

@sotarok
Created August 28, 2012 02:17
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 sotarok/3494341 to your computer and use it in GitHub Desktop.
Save sotarok/3494341 to your computer and use it in GitHub Desktop.
update vendor mirror repository
#!/bin/bash
CURDIR=`pwd`
for dn in `find . -maxdepth 1 -type d`
do
[ "$dn" == "." ] && continue
echo $dn
cd $dn
git fetch origin
git push crocos --all
git push crocos --tags
cd $CURDIR
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment