> From: Philipp Kraus <philipp.kr...@flashpixx.de>
> 
> 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 write something like this:

    *
    !*.cpp

The first rule means that all files are to be ignored.  (You might
have to add ".*", I forget whether an initial "." is matched by "*".)
The second overrides the first, meaning to not ignore files that match
"*.cpp".

Dale

-- 
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.

Reply via email to