Reputation: 3
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
Reputation: 118108
git reset
to rewind master
to whichever commit you think it should be.git push --force
Upvotes: 1