git-svnを使用してsvn追跡ブランチをマージする正しいワークフローは何ですか?私は、について少し読んだのgit-svnの設定キーsvn.pushmergeinfo、及び注意事項は次のとおりです。git-svn svn.pushmergeinfoを使用したマージのワークフロー
http://www.kernel.org/pub/software/scm/git/docs/git-svn.htmlから:
設定キー:gitの原因となります。このオプション
svn.pushmergeinfo -svn〜 可能であれば、 SVNリポジトリ内のsvn:mergeinfoプロパティを自動的に設定しようとします。現在のところ、 が最初の を除くすべての親が既にSVNにプッシュされている非早送りマージを非コミットする場合にのみ、これを行うことができます。
だから私の通常のワークフローは次のとおりです。
は私local_feature_branchに^ /トランクをマージし、私はその後、SVNブランチ^ /支店/ feature_branch
# Ensure git-svn is configured to populate svn:mergeinfo
git config --global svn.pushmergeinfo true
# Update my local svn remotes state
git svn fetch
# Track a local branch against a remote SVN backed ^/branches/feature_branch
git checkout -b local_feature_branch remotes/feature_branch
# Modify files and commit to local git repo
git commit -a -m "changes"
# Push changes to SVN branch ^/branches/feature_branch
git svn dcommit
を持っていると仮定すると、私はのような何かをすると仮定?
# Sync to the latest SVN
git svn fetch
# Rebase "master" which is tracking the remote SVN ^/trunk
git checkout master
git svn rebase
# Checkout the local_feature_branch
git checkout local_feature_branch
# Merge "master" into "local_feature" which is tracking ^/trunk
git merge --squash master
git commit -m "merge master which is tracking SVN ^/trunk"
# Dry run the dcommit to SVN which should include svn:mergeinfo property changes
git svn dcommit --dry-run
# Commit merge to trunk
git svn dcommit
妥当と思われます。何について質問がありますか? –