person
person

Reputation: 3

Transfer only revision history from Google Code to GitHub

We recently moved our project from Google Code to GitHub, but only wanted to move a part of it (up to say revision 600) so instead of using GitHub's built-in system to transfer an SVN repo over we just created the project out of a local project folder that was appropriate.

However, I'd like to transfer over the revision history up to a specific revision. Is there a way to do this? Note I don't want the existing code in the repo to be modified, I just wanted to bring the history over.

Upvotes: 0

Views: 291

Answers (1)

Aristotle Pagaltzis
Aristotle Pagaltzis

Reputation: 118108

  1. Use GitHub’s SVN import feature.
  2. Clone the new git repository.
  3. Use git reset to rewind master to whichever commit you think it should be.
  4. git push --force

Upvotes: 1

Related Questions