Skip to content

Instantly share code, notes, and snippets.

@mrexodia
Created February 15, 2016 06:55
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 mrexodia/9f9fea1e27f5c0c12893 to your computer and use it in GitHub Desktop.
Save mrexodia/9f9fea1e27f5c0c12893 to your computer and use it in GitHub Desktop.
Gogs migration script
#!/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