Julen Julen - 5 months ago 111
Git Question

gitignore - Ignore all file types except specified ones

I only want to commit files which extension is

, but I can't configure
file to achieve this.

I've tried with the following:


and also with:


but it doesn't work.

Answer Source

Try this in your gitignore file-

* !*.fmb !*.fmx !*.pll

You will want to first ignore everything and then whitelist files.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download