Just done a test and it appears to work for me.
git status --ignored -u
will give full details including what has been ignored and details in
sub-directories (-u == --untracked-files (default all)).
my test structure was
.gitignore
top.txt
data.txt
data/data1.txt
data/bottom.txt
the untracked
Beautiful and works! Thanks~~
在 2016年12月15日星期四 UTC+8下午7:14:10,Philip Oakley写道:
>
> I think you want:
>
> **/*data*
> # same as *data*, but with the 'at any level' markers to match the next
> pattern
> !**/*data*/
> # do not (!) ignore *data* _directories_(trailing slash) at any level (**/
> )
>
I think you want:
**/*data*
# same as *data*, but with the 'at any level' markers to match the next
pattern
!**/*data*/
# do not (!) ignore *data* _directories_(trailing slash) at any level (**/)
The use of the ** code causes much confusion.
I have not tested it.
This is case sensitive. so
/*
*data*
!/data
!/model
is this OK?
在 2016年12月15日星期四 UTC+8上午2:23:30,Xia Hong写道:
>
> Hi , ALL
> I don't understand .gitignore well, how should i make it?
>
> my git version is 1.8.3.1
>
> 1. "Trailing spaces are ignored unless they are quoted with backslash ("\")."
> seem not always work.