Take the 2-minute tour ×

I'm extending an open source project with additional functionality. So I'll be basing my code on the released version of the source code. The open source project uses SVN and I uses Git.

How would I rebase only to the released version (SVN tags) instead of to the HEAD of trunk when a new version is released?


share|improve this question

1 Answer 1

Assuming you already have git-svn or some other method of importing commits set up:

git rebase releasetag mybranch

The tag releasetag might import from SVN or it might be a tag you've created yourself with git-tag, or it could even just be the SHA-1 of a particular commit.

share|improve this answer

Your Answer


