Are you ignoring me?

Additional gitignore settings

Photo by Kevin Ku on Unsplash

Start with the standard

When I start a new repository for a Unity project I use the GitHub template for Unity .gitignore files as a starting point and then I customize and add to the git ignore file as needed. The template can be found at https://github.com/github/gitignore/blob/master/Unity.gitignore.

Unity specific .gitignore entries

What do I add?

So some of the things I add to my .gitignore file include entries to ignore files created by my editor of choice, JetBrains Rider, as well as some setting for Visual Studio because sometimes I work with others that may not have Rider.

IDE specific .gitignore entries
MacOS specific .gitignore settings

Next Time!

Today's quick article covered one of the most important files you can include in a git repository. Without this file thousands of files that Unity uses but don’t need to be included in your repository will be added. If you enjoyed this article, or want to come along with me as I progress on my journey, follow me at gamedevchris.medium.com.

--

--

Unity Game Developer, Software Engineer, Gamer, Musician, and Father. Christopher is a creative that enjoys a challenge and loves coding.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christopher West

Unity Game Developer, Software Engineer, Gamer, Musician, and Father. Christopher is a creative that enjoys a challenge and loves coding.