Created
March 27, 2009 21:01
-
-
Save aristidb/86901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /var/git/flusspferd.git | |
git remote update | |
git for-each-ref --format="%(refname)" refs/remotes/|while read ref | |
do | |
branch=$(echo $ref|sed -e 's/^refs\/remotes\/[^\/]*\//refs\/heads\//') | |
echo "$ref => $branch" | |
git push . $ref:$branch | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment