Skip an SVN Commit in SVN to Git Conversion?
I am doing a large migration from SVN to Git. This migration goes back through about four years of history. I am able to successfully push commits up to a certain date, (Nov 11). On this date, there was one commit that pushed a 7GB file, and in the following commit, this file was removed (it appears to have been a mistake).
Git throws an error when attempting to push this enormous commit, and I cannot get past it. Is there any way simply skip that commit? My current process is to checkout a specific commit, push it, and repeat. I did this to find the error that I am currently facing.
- (tortoise) svn: relocate different branches to different repositories (= different URL and UUID)
- In Subversion can I be a user other than my login name?
- Maven Issue - The goal you specified requires a project to execute but there is no POM in this directory
- Missing ranges error message when reintegrating a branch into trunk in Subversion 1.5
- Git-svn branch hoses dcommit when using an odd branch structure
- Subversion commit problem
Thanks for all advice.
One Solution collect form web for “Skip an SVN Commit in SVN to Git Conversion?”
Basically, you just
git svn fetch until the commit immediately before the bad commit you want to skip, then fetch beginning at the commit immediately after the bad commit. Keep in mind, skipping a commit will cause problems if other files were created or modified in this commit, and later commits depend on those modifications.
git svn fetch -r BASE:<BAD REVISION> git svn fetch -r <BAD REVISION>:HEAD
There’s a great thread on this on the main git mailing list. @me_and posted a similar solution to a similar question in this post as well.