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
pull
ing from Github, you want tofetch
from Github. Agit pull
is equivalent to agit fetch
then agit merge
, and git-svn doesn’t play well with git merges.