Switch the svn branch git dcommits to

梦想的初衷 提交于 2019-12-05 09:12:09
Daniel Hershcovich

As mentioned in this question, using git merge in a repository with git-svn is not a good idea.

Instead, what you should have done to "merge" the changes into master is:

git checkout master
git format-patch --stdout master..tcl | git am
git svn dcommit

The problem with git merge in this case is that it also sets the git-svn URL for master to the SVN tc branch. The format-patch and am combination only takes the changes themselves.

AFAIK a --no-ff merge would have gone the way you want:

git branch master
git merge --no-ff tcl
git svn dcommit
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!