SVNリポジトリ上に存在する複数のブランチやtrunkの間で、
変更点をマージしたりする方法のメモです。

まず、これからSVNリポジトリをgit svn cloneすると言う場合は、以下のような
オプションを指定して実行します。

pre>>
git-svn clone http://svn.repos.com/foo -T trunk -b branches -t tags
<<--

これで、SVNリポジトリ上のtrunk, branches, tagsをGitのbranchとして全て取り込んだ状態でcloneが実行されます。

git-svnでcloneした既存のWorking copyが手元にあって、
そこに別なbranchやtrunkを追加したい場合は、以下のように.git/config
ファイルに項目を加えます。

pre>>
[svn-remote "svn"]
url = http://svn.repos.com/foo/branches/bar
fetch = :refs/remotes/git-svn
[svn-remote "trunk"]
url = http://svn.repos.com/foo/trunk
fetch = :refs/remotes/git-svn-trunk
<<--

下の方が今回追加したものです。
あとは、以下のコマンドを実行してSVNからfetchしてきます。

pre>>
% git svn fetch trunk
<<--

そうすると、以下のようなブランチが作成されます。

pre>>
% git branch -r
git-svn
git-svn-trunk
<<--

ここから先は、普通にGitのbranchとしてmergeすればOKです。

** See Also **

posted by genki genki on Fri 13 Jun 2008 at 15:22 with 0 comments
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
coffeescriptdefergroongajsmemonodenodejs
Comments rssrss
https://uae.buyallasia.com/author-profile/lilianahornick/ https://uae.buyallasia.com/author-profile/lilianahornick/: Пользуюсь IndexChecker уже месяц, полет нормальный... 04/22 20:07
https://mp3diary.com/sheliacunningh https://mp3diary.com/sheliacunningh: Помогло быстро выявить ссылки, которые не попали ... 04/22 19:54
https://healthjobslounge.com/employer/tenchat/ https://healthjobslounge.com/employer/tenchat/: Отчеты в CSV формате — это то, чего мне не хватал... 04/22 19:53
https://overseas-realestate.com/author/rexmaccarthy67/ https://overseas-realestate.com/author/rexmaccarthy67/: Реально экономит время при аудите сайта. 04/22 19:47
https://www.caribbeandigitaldirectory.com/author/genevagadsden/ https://www.caribbeandigitaldirectory.com/author/genevagadsden/: Хорошая поддержка, ответили на вопросы по API очен... 04/22 19:23
https://xn--krken21-bn4c.com https://xn--krken21-bn4c.com: Как безопасно использовать ликвидность в пулах н... 04/21 23:35
https://www.gms4you.us/ https://www.gms4you.us/: Moving professionals state, in today's world hirin... 04/21 19:41
https://www.gms4you.us/ https://www.gms4you.us/: Industry experts are convinced, that hiring movers... 04/21 19:41