Re: [git-users] invert gitignore

2013-10-24 Thread Philipp Kraus
Thanks greate, works well Am Dienstag, 22. Oktober 2013 16:43:07 UTC+2 schrieb Dale Worley: > > 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 "*".)

Re: [git-users] invert gitignore

2013-10-22 Thread Dale R. Worley
> From: 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

Re: [git-users] invert gitignore

2013-10-22 Thread William Seiti Mizuta
Hi Philipp, 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

[git-users] invert gitignore

2013-10-22 Thread Philipp Kraus
Hello, 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