メモとして残します。
わりと手間取ったのでメモ
Git to Git は記事にまとめましたが、SVN to Gitへのリポジトリ移行について今回はまとめます。
■やり方
0.[重要]Windows32bit版のGitをインストール
64bitバージョンだと既知の不具合か何かで、git svn clone
コマンドが
こけるらしいので、Git32bitをインストール。
1.任意のフォルダで右クリメニューGitクローン(複製)...をクリック
2.SVNのURLをセット
URL・・・SVNのURLを入力
ディレクトリ・・・ダウンロード先フォルダを入力
SVNリポジトリからにチェック
注意)
・トランク、タグ、ブランチがある場合は、URLもこれらがある階層を含むアドレスにして、チェックを入れる。
・最新のリジョンのみクローンする場合はFrom
に最新のリビジョンNoの数字を入力して実行すること
3.SVNからダウンロード&Git用に自動変換
注意)リビジョンが多いほど時間がかかりますのでじっくり待つ。
4.Originのリモートをセット
git remote add origin https://hogehoge.com/hoge.git
5.ローカルの情報をリモートにpush
git push -u origin master
以上