you can put the character "!" to negate the pattern:
An optional prefix "!" which negates the pattern; any matching file
excluded by a previous pattern will become included again. If a negated
pattern matches, this will override lower precedence patterns sources. Put
a backslash ("\") in front of the first "!" for patterns that begin with
a literal "!", for example, "\!important!.txt".
William Seiti Mizuta
Caelum | Ensino e Inovação
On Tue, Oct 22, 2013 at 9:20 AM, Philipp Kraus
> I use my .gitignore to define files which should not store in the history,
> but can I use an invert filter?
> So I would define files, which are only stored in the history. So if I
> write to the (not)ignore file *.cpp all other file except *.cpp are ignored?
> So I need the invert / complement definition of gitignore
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.