I have question regarding ignore and exclude rules in .gitignore.

So I have a very large file tree where I want to ignore all lib files except a specific lib file which is a text file with a .lib extension:

What I have in my .gitignore file:

```
# exclude rule
!text.lib
# ignore rule
*.lib

```

However, I can not see all the text.lib files in my file tree when issuing a git status. The '!text.lib' is overrulled by \*.lib'

How to make a rule that can solve this?

Thank you very much:-)