Skip to content

Instantly share code, notes, and snippets.

@mishak87
Last active October 20, 2015 09:29
Show Gist options
  • Save mishak87/f6a55659321f1ecb74e3 to your computer and use it in GitHub Desktop.
Save mishak87/f6a55659321f1ecb74e3 to your computer and use it in GitHub Desktop.
Copy repository ie. from gitosis to gitlab
#!/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