So I\'m using git and interacting with an svn repo.
I have a svn TRUNK that looks like this:
A-B-C-D
And a svn bug_fixes branch that br
The Caveats section of the git-svn documentation warns
For the sake of simplicity and interoperating with a less-capable system (SVN), it is recommended that all
git svn
usersclone
,fetch
anddcommit
directly from the SVN server, and avoid allgit clone
/pull
/merge
/push
operations between git repositories and branches.
The author does provide a recommendation:
The recommended method of exchanging code between git branches and users is
git format-patch
andgit am
, or justdcommit
ing to the SVN repository.
Adapting to your situation
git format-patch --stdout c^..i >my.patch
git reset --hard trunk
git am
where c
and i
are appropriate identifiers for the commits in your history.