Who we are

We are the developers of Plastic SCM, a full version control stack (not a Git variant). We work on the strongest branching and merging you can find, and a core that doesn't cringe with huge binaries and repos. We also develop the GUIs, mergetools and everything needed to give you the full version control stack.

If you want to give it a try, download it from here.

We also code SemanticMerge, and the gmaster Git client.

Definitive ignore.conf for Unity projects

Tuesday, January 14, 2020 Ma Nu , 0 Comments

Why do you need a good ignore.conf?

Unity, like many other editors such as Visual Studio and Visual Studio Code, and many others, creates a wide variety of files that shouldn't be part of the repository. The ignore.conf file contains a list of rules that makes those files and directories not to be tracked by Plastic SCM.

The main advantages of a good ignore.conf are:

  • Smaller repository: Big assets are kept local; therefore, the repository size doesn't grow.
  • Avoid constant conflicts: Automatic files created by IDEs are changed continuously. If they are part of the repository, the users will face merge conflicts every time the IDE changes them locally.

Directories to exclude

Every Unity project is different, but several paths are always part of the Unity project skeleton. The rule of thumb is to exclude all the directories and files that Unity regenerate automatically.

For example, Library and Temp directories are the most populated paths in your Unity project. They can hold thousands of files and weight several GBs, and if you delete them, Unity creates them again.

Unity never-exclude recommendation

Unity recommends never to exclude the Assets and the Project setting directories.

Keep them always added to your Plastic SCM repository. Otherwise, your coworkers will not be able to open the Unity project.

The definitive ignore.conf file

#Common directories

# Builds

#Plastic SCM related

# Gradle cache directory

# Autogenerated project files

# Unity3D generated meta files

# Unity3D Generated File On Crash Reports

# Crashlytics generated file


Share it!

There are two different ways to share the ignore.conf with your coworkers, using Plastic SCM for it, of course.

  1. Add the ignore.conf file to the repository. Add and check the file in, every member of your team will get it the next time they update their workspaces.
  2. Use the Plastic SCM Server global configuration feature to deploy the file on every client at once.

Further reading

Find below several links to read if you are interested in learning more about the private file and the ignore.conf file:

Manuel Lucio
I'm in charge of the Customer Support area.
I deal with complex setups, policies and working methodologies on a daily basis.
Prior to taking full responsibility of support, I worked as software engineer. I have been in charge of load testing for quite some time, so if you want to know how well Plastic compares to SVN or P4 under a really heavy load, I'm your guy.
I like to play with Arduino GPS devices, mountain biking and playing tennis.
You can find me hooked to my iPhone, skate-boarding or learning Korean... and also here @mrcatacroquer.

0 comentarios: