almost forgot about this...sorry.
as it turns out there is no easy solution to the problem that i described. i experimented with several options but each has drawbacks... nevertheless, maybe it is helpful if anybody else has the same problem:
delete the unwanted file/folder from the git history
git filter-branch --tree-filter "[ -f hugefile.bin ] && rm hugefile.bin" -f
Pros:
- effectively removes the file from your repository
Cons:
- you will have to clean up your repository (get rid of the old commits as they are still in the git repo). either s.th. along
git gc --prune=now
or just clone your repository (will by default not clone your remote svn branch)
- the branch you get will not be synchronized with svn anymore (if you do another
git svn fetch
git will still fetch the unchanged history
cut of the history of svn when initially cloning
git svn clone -r N http://yoursvnaddress myPartlyClonedRepo.git
where N will be the earliest revision number that is synched
Pros:
- enables you to keep the size of your repository small (what I wanted in the first place)
Cons:
- earlier history is "lost"
sparse checkout
this has been a recent addition in git 1.7 and allows you to selectively modify your working directory
git config core.sparsecheckout true
echo "*" > .git/info/sparse-checkout
echo '!path-to-huge-unwanted-dir/' >> .git/info/sparse-checkout
git read-tree -m -u HEAD
Pros
Cons
- does not affect the size of your database (.git)