Last active
April 26, 2016 09:13
-
-
Save akm/7411a2c709e14e8795e5dee384bb0fe6 to your computer and use it in GitHub Desktop.
複数のSubversionのリポジトリを一つのGitリポジトリに移行する方法 ref: http://qiita.com/akm/items/0ec3929f9abdbdcab1cb
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
$ git svn clone svn+ssh://host/path/to/repo1 |
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
$ export GIT_REPO=gitrepo1 | |
$ mkdir $GIT_REPO | |
$ cd $GIT_REPO | |
$ git init | |
$ echo $GIT_REPO > README.md | |
$ git add README.md | |
$ git commit -m "Initial Commit" |
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
$ export REPO=repo1 | |
$ mkdir $REPO | |
$ touch $REPO/.gitkeep | |
$ git add $REPO/.gitkeep | |
$ git commit -m "create $REPO dir to merge from path/to/repo" | |
$ git remote add $REPO ../$REPO | |
$ git fetch $REPO | |
$ git merge -X subtree=$REPO $REPO/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment