13
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【SVN,Git】TortoiseGitを用いてコミット履歴込みでSVNリポジトリをGitへ移行する。

Last updated at Posted at 2020-08-04

メモとして残します。

わりと手間取ったのでメモ

Git to Git は記事にまとめましたが、SVN to Gitへのリポジトリ移行について今回はまとめます。

■やり方

0.[重要]Windows32bit版のGitをインストール

64bitバージョンだと既知の不具合か何かで、git svn cloneコマンドが
こけるらしいので、Git32bitをインストール。

1.任意のフォルダで右クリメニューGitクローン(複製)...をクリック

image.png

2.SVNのURLをセット

URL・・・SVNのURLを入力
ディレクトリ・・・ダウンロード先フォルダを入力
SVNリポジトリからにチェック
注意)
トランク、タグ、ブランチがある場合は、URLもこれらがある階層を含むアドレスにして、チェックを入れる。
最新のリジョンのみクローンする場合はFromに最新のリビジョンNoの数字を入力して実行すること
image.png

3.SVNからダウンロード&Git用に自動変換

完了すると下部に青地で成功と表示される。
image.png

注意)リビジョンが多いほど時間がかかりますのでじっくり待つ。

4.Originのリモートをセット

git remote add origin https://hogehoge.com/hoge.git

5.ローカルの情報をリモートにpush

git push -u origin master

以上

13
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?