GIT Ignore file with specific extension

The Following is an example of a file and all files with the extension .DS_Store that are being ignored.

*.DS_Store
!spec/*.DS_Store