- Home /
Which files I can add to the .gitignore?
When I make commit to the github, I commit all the files, wich was changed. Some of them have formats:
*.unity
*.dwlt
*.dll
*.sln
etc.
If something will happend with project on my computer, I want to clone it from github and continue working without problems.
Which files, except .cs and .js, should I commit every time and which I can add to the .gitignore?
Answer by DaDonik · Feb 27, 2015 at 10:01 AM
Since i don't really care how large the GIT will get, i commit all of the files.
I know it's a 'source control' tool, but it works well so far...and it's always easier to delete a file instead of not having it.
If you roll your GIT back and you don't have all the temporary files in the GIT, Unity will have problems. The temporary files will point to files you haven't created in that previous state. Unity will throw errors, you will have to delete the temporary files (e.g Library folder), ... been there.
Oh and one more thing. In the editor settings set the version control to "Visible meta files" if you haven't done so already.
Also set "Asset Serialization" to "Force Text".
Your answer
Follow this Question
Related Questions
Editor Settings: C# Project Generation: Root namespace has no effect 2 Answers
Input Axis names and axis type (help with joysticks) 1 Answer
Asset Serialization: Mixed vs Force Text 3 Answers
Edit Project Settings > Audio through code 0 Answers
Input.GetAxis("Mouse ScrollWheel") not set up in project settings, 0 Answers