text git-svn操作#memo #git #svn

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text git-svn操作#memo #git #svn相关的知识,希望对你有一定的参考价值。

git-svn 操作

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

以上是关于text git-svn操作#memo #git #svn的主要内容,如果未能解决你的问题,请参考以下文章

text Git Internals #memo #git

text gitいろいろ#memo #git

text git変更点列挙#memo #git

text git-commitのチェック#memo #git

text gitで裸リポジトリを同期#memo #git

Linux实用命令之git-svn