Created
October 23, 2011 06:02
-
-
Save harperreed/1306934 to your computer and use it in GitHub Desktop.
Migrate to bitbucket from github and svn (springloops)
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
base_dir=$(pwd) | |
repo_name=$1 | |
old_git_url="git@github.com:harperreed/$repo_name.git" | |
git_url="git@bitbucket.org:harper/$repo_name.git" | |
git clone $old_git_url | |
cd $repo_name | |
git remote rm origin | |
git remote add origin $git_url | |
git push origin master |
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
base_dir=$(pwd) | |
repo_name=$1 | |
svn_url="https://code.harperreed.org/source/"$repo_name | |
git_url="git@bitbucket.org:harper/$repo_name.git" | |
git svn --authors-file=authors.txt clone $svn_url | |
cd $repo_name | |
git remote add origin $git_url | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment