{"id":13,"date":"2011-12-07T00:04:48","date_gmt":"2011-12-06T16:04:48","guid":{"rendered":"https:\/\/teckartist.com\/?p=13"},"modified":"2011-12-13T12:01:47","modified_gmt":"2011-12-13T04:01:47","slug":"ignore-file-for-git-and-unity","status":"publish","type":"post","link":"https:\/\/teckartist.com\/?p=13","title":{"rendered":"Ignore file for Git and Unity"},"content":{"rendered":"<p>After the initial bewilderment of starting up git for my personal projects (I&#8217;d previously used Subversion and Perforce), I&#8217;m finding it quite nice. For those of you thinking of going Git with Unity, here&#8217;s a working ignore file. It basically covers the files listed in Unity&#8217;s source control\u00a0<a title=\"Using External Version Control Systems with Unity\" href=\"http:\/\/unity3d.com\/support\/documentation\/Manual\/ExternalVersionControlSystemSupport.html\">documentation<\/a>, plus the Temp directory. Anything else in the project directory gets versioned.<\/p>\n<p>Paste the following in a plain text file named .gitignore located in your project directory (the repo root):<\/p>\n<pre>*.apk\r\nThumbs.db\r\nTemp\/\r\nLibrary\/*\r\n!Library\/EditorBuildSettings.asset\r\n!Library\/InputManager.asset\r\n!Library\/ProjectSettings.asset\r\n!Library\/QualitySettings.asset\r\n!Library\/TagManager.asset\r\n!Library\/TimeManager.asset\r\n!Library\/AudioManager.asset\r\n!Library\/DynamicsManager.asset\r\n!Library\/NetworkManager.asset<\/pre>\n<p>If you want to add more files to ignore, the syntax is pretty simple:<\/p>\n<pre>*.Ext     : Standard wildcard\r\nFile.Ext  : Specific file\r\nDir\/      : Entire directory\r\nDir\/*     : All files in directory (there's a difference! Thanks to <a title=\"James O'Hare\" href=\"http:\/\/www.farfarer.com\/\">James O'Hare<\/a> for pointing that out)\r\n!Dir\/File : Negates ignore flag (you'll need to use the aforementioned [Dir\/*] for this. [Dir\/] will effectively override the ignore flag)<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After the initial bewilderment of starting up git for my personal projects (I&#8217;d previously used Subversion and Perforce), I&#8217;m finding it quite nice. For those of you thinking of going Git with Unity, here&#8217;s a working ignore file. It basically covers the files listed in Unity&#8217;s source control\u00a0documentation, plus the Temp directory. Anything else in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10,8],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-git","category-scripting","category-unity"],"_links":{"self":[{"href":"https:\/\/teckartist.com\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teckartist.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teckartist.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teckartist.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teckartist.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":9,"href":"https:\/\/teckartist.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/teckartist.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/teckartist.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teckartist.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teckartist.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}