Created
February 15, 2016 06:55
-
-
Save mrexodia/9f9fea1e27f5c0c12893 to your computer and use it in GitHub Desktop.
Gogs migration script
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 | |
git clone ssh://fromhost.com/home/fromuser/$1.git | |
cd $1 | |
git remote remove origin | |
git remote add origin https://tohost.com:443/touser/$1.git | |
git push origin --all | |
cd .. | |
rm -rf $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment