Things to note when committing your Unity Project to GIT

In your Unity Project:

  1. Go to Edit > Project Settings > Editor.
  2. Set Version Control Mode as Visible Meta Files. 
  3. Set Asset Serialization Mode as Force Text.

In your GIT Project:

    1. Set .gitignore
      obj
      Temp
      *.tmproj
      *.csproj
      *.unityproj
      *.sln
      *.suo
      *.user
      *.pidb
      *.userprefs
      Library/cache/*
      Library/metadata/*
      Library/previews/*
      Library/ScriptAssemblies/*
      .DS_Store
      Library/*
      Library/AssetImportState
      Library/AssetServerCacheV3
      Library/FailedAssetImports.txt
      Library/ScriptMapper
      Library/asetDatabase3
      Library/cache
      Library/expandedItems
      Library/guidmapper
      AnnotationManager
      assetDatabase3
      AssetImportState
      assetservercachev3
      AssetServerCacheV3
      AssetVersioning.db
      AudioManager.asset
      BuildPlayer.prefs
      BuildSettings.asset
      DynamicsManager.asset
      EditorSettings.asset
      EditorUserBuildSettings.asset
      expandedItems
      FailedAssetImports.txt
      guidmapper
      InspectorExpandedItems.asset
      MonoManager.asset
      NetworkManager.asset
      ScriptMapper
    2. If you’re using SourceTree, go to Settings > Advanced > Repository-specific ignore list > Edit.

Then you’re good to go! 🙂

Yeti Crab also wrote a good tutorial on how to use GIT with Unity without using command line (they used SourceTree and BitBucket).

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 )

Twitter picture

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

Facebook photo

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

Connecting to %s