By default it is not possible to see .gitignore files in osx. What is command to reveal these files?
It's possible you might just not have a .gitignore file. If you don't have one, you can create it like this:
.gitignore
>touch ~/.gitignore
And then edit it however you'd like. Git will automatically check this file, without any additional configuration!