Version Control Systems
When working in a team using Flax Engine, it's very common to use a version control system. Using a version control system makes it easier for users to manage their code and assets. It is a repository of files with monitored access, which in the case of Flax, will be all the files associated with a Flax project. With version control it is possible to follow every change to the source along with information on who made the change, why they made it and what they changed/added. This makes it easy to revert back to an earlier version of the code or to compare differences in versions. It also becomes easier to locate when a bug first occurred along with what code might have caused it.
By default, all Flax projects data is split into two parts: Content and Source. This means that all C# script files are organized in a single directory (including subdirectories). Asset files are in a separate directory making the use of an external storage solution easier (OwnCloud, Dropbox, etc.) This is especially useful when dealing with large file sizes.
Here is an example
.gitignore file for the Git repository with Flax project (download link).
# Ignore Flax project files Binaries/ Cache/ Logs/ Output/ Screenshots/ *.HotReload.* # Ignore Visual Studio project files (generated locally) *.csproj *.sln # Ignore thumbnails created by Windows Thumbs.db # Ignore files built by Visual Studio *.obj *.exe *.pdb *.user *.aps *.pch *.vspscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.cache *.ilk *.log [Bb]in [Dd]ebug*/ *.lib *.sbr obj/ [Rr]elease*/ _ReSharper*/ [Tt]est[Rr]esult* .vs/ # Ignore Nuget packages folder packages/
Here is an example
.gitattributes file for the Git LFS repository with Flax project. By using Large Files Storage you can improve repository performance for asset files that are using binary format and tend to be big (models, textures, etc.).
# Flax Engine files *.flax filter=lfs diff=lfs merge=lfs -text # Asset source file types *.png filter=lfs diff=lfs merge=lfs -text *.tga filter=lfs diff=lfs merge=lfs -text *.raw filter=lfs diff=lfs merge=lfs -text *.wav filter=lfs diff=lfs merge=lfs -text *.psd filter=lfs diff=lfs merge=lfs -text *.mov filter=lfs diff=lfs merge=lfs -text *.jpg filter=lfs diff=lfs merge=lfs -text *.jpeg filter=lfs diff=lfs merge=lfs -text *.hdr filter=lfs diff=lfs merge=lfs -text *.fbx filter=lfs diff=lfs merge=lfs -text