Created
November 12, 2009 10:31
-
-
Save effkay/232790 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| url="ssh://git.screenconcept.ch/var/git/" | |
| location="/var/git/" | |
| cd $location | |
| mkdir tmpdir | |
| for repository in *.git | |
| do | |
| cd $location/tmpdir | |
| echo "--- CLONING $repository" | |
| git clone --bare $url$repository | |
| cd $repository | |
| echo "--- PUSHING $repository WITH ALL REFS TO GITHUB" | |
| git push --mirror git@github.com:screenconcept/$repository | |
| echo "--- DONE WITH $repository" | |
| echo "----------------------------------------------------------------------------" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment