Sha256: 70f88b513b5d0425bb3e56d3c043ad7e01016417e3461dfc2eca3b757e883d5b
Contents?: true
Size: 609 Bytes
Versions: 3
Compression:
Stored size: 609 Bytes
Contents
#!/bin/bash set -e if [ $# -lt 3 ]; then echo 'failed' exit 1 fi # Assume we are in your home directory # cd ~/ # Clone the repo from GitLab using the `--mirror` option git clone --mirror "$2" # Change into newly created repo directory cd $1.git # Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. git push --no-verify --mirror "$3" # Set push URL to the mirror location git remote set-url --push origin "$3" # To periodically update the repo on GitHub with what you have in GitLab git fetch -p origin git push --no-verify --mirror # Clean cd - rm -rf $1.git
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lab2hub-0.2.0 | tools/migrate.sh |
lab2hub-0.1.1 | tools/migrate.sh |
lab2hub-0.1.0 | tools/migrate.sh |