I found a few decent-looking and highly-upvoted responses, but I ended up going with one on this page. A screenshot of the described solution is below. I had slightly different navigation than described below, but this gets me there.
[WARNING] This actually ended up causing problems for my Intellij / github working together.
You type in various characteristics of your project and it produces a .gitignore file. e.g. Java OSX Intellij
This blog is mainly for statistics, R, or Duke-related stuff that is not directly relating to research activity.