Git-svn ignore large binaries

I work with a large svn repository (30,000 + revisions). I am using git-svn with limited success.

My main problem is that the svn repository contains frequent updates of large binary files (~ 30 MB). I do not care about the history of these files, but I am concerned about the current versions of these files.

git svn rebase is very slow if there were a lot of updates with big updates for large binaries since my last svn permutation (which is common). My git database is also growing very fast. I am looking for a solution to these two key issues.

Ideally, what I would like to do is completely ignore these large files from svn and then run a script that retrieves only the latest version that I would block using .gitignore. However, I am very open to other options.

+4
source share
3 answers

you can ignore some files with the --ignore-paths git svn parameter:

  --ignore-paths=<regex> This allows one to specify a Perl regular expression that will cause skipping of all matching paths from checkout from SVN. The --ignore-paths option should match for every fetch (including automatic fetches due to clone, dcommit, rebase, etc) on a given repository. config key: svn-remote.<name>.ignore-paths If the ignore-paths config key is set and the command line option is also given, both regular expressions will be used. Examples: Skip "doc*" directory for every fetch --ignore-paths="^doc" Skip "branches" and "tags" of first level directories --ignore-paths="^[^/]+/(?:branches|tags)" 
+8
source

From what I know, I don’t think it can be done using git-svn, since git-svn extracts all svn information and converts it to git. check your package file and you will see its huge file.

what i would do is add huge files / folder to .gitignore so that it doesn't process them at all.

A good solution is posted here: http://alblue.bandlem.com/2011/11/git-tip-of-week-git-bigjobbies.html

0
source

git svn parameter --ignore-paths =

it is useful to exclude unwanted binaries when converting svn repository to git

If you know binary file extensions, you can write a regular expression to exclude them, FOR EXAMPLE,

.jar files: - ignore-paths = ". *. jar $"

0
source

All Articles