Last active
January 8, 2019 08:27
-
-
Save MoritzBuetzer/73f97de559671436f023ae2a32c8a1fe to your computer and use it in GitHub Desktop.
Quick & dirty script to migrate Bitbucket Repo to GitHub
This file contains hidden or 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
#!/usr/bin/env bash | |
projectname=$1 | |
${bitbucketUsername}=HansMuster | |
${githubUsername}=HansMuster | |
git clone [email protected]:${bitbucketUsername}/${projectname}.git | |
cd ${projectname} | |
git remote set-url origin https://github.com/${githubUsername}/${projectname}.git | |
git push --mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
./migrate.sh reponame