Last active
October 20, 2015 09:29
-
-
Save mishak87/f6a55659321f1ecb74e3 to your computer and use it in GitHub Desktop.
Copy repository ie. from gitosis to gitlab
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 | |
dir=$(mktemp -d) | |
old=$1 | |
new=$2 | |
git clone "$old" "$dir" | |
cd "$dir" | |
git remote add new "$new" | |
git push -u new master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment