Try to use git rm -r /web/tests to remove the directory from your git
project.


William Seiti Mizuta
@williammizuta
Desenvolvedor da Caelum



On Mon, Nov 26, 2012 at 2:18 PM, Huu Da Tran <[email protected]> wrote:

> Hi all,
>
> I'm trying to exclude a new subdirectory that was added by someone else.
>
> in my $GITDIR/info/sparse-checkout file, I have:
>
>     /web/
>
> Now, I want to exclude the /web/tests/ subdirectory. So I changed my file
> to:
>
>     /web/
>     !/web/tests/
>
> but this does not work. After calling
>
>     git read-tree -m -u HEAD
>
> the subdirectory /web/tests is still present. If I change to:
>
>     /web/
>     !tests
>
> the /web/tests subdirectory does disappear, but this may exclude possible
> 'tests' directory under any other subdirectories that I may want to keep.
>
> Is it possible to do what I want?
>
> Thanks.
>
> H.
>
> --
>
>
>

-- 


Reply via email to