LoginSignup
3
3

More than 5 years have passed since last update.

git-svnブランチ開発

Last updated at Posted at 2014-09-24

1.ソースの最新化

git checkout <マージされるブランチ名>
git svn rebase

2.ブランチ作成・開発・コミット

git checkout -b <開発ブランチ名>
# 開発する
git add .
git commit -m "create hoge"

3.マージ

git checkout <マージされるブランチ名>
git merge --no-ff <開発ブランチ名> -m "merge hoge to XX"

※ no-ffオプションを付けないと、SVNへコミット先が意図せぬブランチになることがある
(fast-forwardの影響で)

4.SVNリポジトリへコミット

git svn dcommit

SVNリポジトリへのコミット先ブランチが正しいものか心配になったら、以下で確認。

git svn info --url

5.リモートブランチの削除

git branch -r -d topic
3
3
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
3
3