Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Thanks.

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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.