Looking at the asp.net mvc series, the gitignore can be created from within the SourceTree.

Click on the Settings button in the right area of the application.
In the window that appears, click on Advanced.
In the advanced section, click on the Edit button where the gitignore gets mentioned.