Re: [git-users] exclude a subdirectory in sparse-checkout
On Monday, November 26, 2012 12:42:55 PM UTC-5, William Mizuta wrote: > > Try to use git rm -r /web/tests to remove the directory from your git > project. I want to keep it in the repo, but not in the sparse-checkout. Sorry if that was not clear in my original question. Thanks. H. --
Re: [git-users] exclude a subdirectory in sparse-checkout
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 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. > > -- > > > --
[git-users] exclude a subdirectory in sparse-checkout
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. --