开发者

How can I use git-svn together with Github, and avoid conflicts?

I am using Git for my SCM of a WP Plugin.开发者_如何转开发 But of course I then have to commit it to an svn repo for it to be displayed in the WordPress Plugin Directory. I have written a guide on how to do this so you can see the steps I am using for it.

Whenever I am about to commit to the svn, I do a git rebase trunk to update the svn trunk before the git svn dcommit. However, if I pull from GitHub and then do the rebase I get conflict errors on all of the commits that have been done by someone else.

What is the reason, and what can I do here?

Because the conflicts are always on all of the commits by another author this gives me the idea that there should be another command (something like rebase) that I should run before git rebase trunk that will merge these files properly or something.


I'm not sure, but I think that instead of pulling from Github, you want to fetch from Github. A git pull is equivalent to a git fetch then a git merge, and git-svn doesn't play well with git merges.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜