Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>almost forgot about this...sorry.</p> <p>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:</p> <p><strong>delete the unwanted file/folder from the git history</strong></p> <pre><code>git filter-branch --tree-filter "[ -f hugefile.bin ] &amp;&amp; rm hugefile.bin" -f </code></pre> <p>Pros: </p> <ul> <li>effectively removes the file from your repository</li> </ul> <p>Cons:</p> <ul> <li>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 <code>git gc --prune=now</code> or just clone your repository (will by default not clone your remote svn branch)</li> <li>the branch you get will not be synchronized with svn anymore (if you do another <code>git svn fetch</code> git will still fetch the unchanged history</li> </ul> <hr> <p><strong>cut of the history of svn when initially cloning</strong></p> <pre><code>git svn clone -r N http://yoursvnaddress myPartlyClonedRepo.git </code></pre> <p>where N will be the earliest revision number that is synched</p> <p>Pros:</p> <ul> <li>enables you to keep the size of your repository small (what I wanted in the first place)</li> </ul> <p>Cons:</p> <ul> <li>earlier history is "lost"</li> </ul> <hr> <p><strong>sparse checkout</strong></p> <p>this has been a recent addition in git 1.7 and allows you to selectively modify your working directory</p> <pre><code>git config core.sparsecheckout true echo "*" &gt; .git/info/sparse-checkout echo '!path-to-huge-unwanted-dir/' &gt;&gt; .git/info/sparse-checkout git read-tree -m -u HEAD </code></pre> <p>Pros</p> <ul> <li>easy setup</li> </ul> <p>Cons</p> <ul> <li>does not affect the size of your database (.git)</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload