Where is my git ignore file in Visual Studio?

If you work a lot with github, then you are used to add a .gitignore file when you initialize your repository.

GitHub_GitIgnore_File

If you create a project in TFS or Visual Studio Team Services this is not the case. You have to add your .gitignore file using the team project settings. Under settings navigate to repository settings.

Team Explorer_Settings

Team Explorer_Repository Settings

Look for the “Ignore File” and click “add”. Edit the file if you need to do any modifications.

Add and edit gitignore file

Now commit the .ignorefile and push your changes to the server.

The git integration in Visual Studio and TFS is pretty good – but a lot of features are well hidden. And some things are not that intuitive as they should be.

One thought on “Where is my git ignore file in Visual Studio?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s