-
Star
(228)
You must be signed in to star a gist -
Fork
(64)
You must be signed in to fork a gist
-
-
Save FullStackForger/20bbf62861394b1a3de0 to your computer and use it in GitHub Desktop.
### | |
# Unity folders and files | |
### | |
[Aa]ssets/AssetStoreTools* | |
[Bb]uild/ | |
[Ll]ibrary/ | |
[Ll]ocal[Cc]ache/ | |
[Oo]bj/ | |
[Tt]emp/ | |
[Uu]nityGenerated/ | |
# file on crash reports | |
sysinfo.txt | |
# Unity3D generated meta files | |
*.pidb.meta | |
### | |
# VS/MD solution and project files | |
### | |
[Ee]xportedObj/ | |
*.booproj | |
*.csproj | |
*.sln | |
*.suo | |
*.svd | |
*.unityproj | |
*.user | |
*.userprefs | |
*.pidb | |
.DS_Store | |
### | |
# OS generated | |
### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db | |
Thumbs.db |
Hello!
Thank you for your answers!
Taking under consideration your insights, and after doing some research, what did work for me is that I imported git for unity, which automatically creates a local repository with the necessary .gitignore file, and that worked properly.
Thank you for you time :)
- Why do we commit the Logs folder?
- I added in my gitignore the following line in order to avoid uploding anything regarding the webgl build, is that ok?
*webgl*
- Good point with Logs @kuskus110 (updating now)
- I would build webgl into a build folder (which is already ignored)
Hello, is this .gitignore still up to date or have you made any changes to the one you use now?
thank you, this already helped allot.
Totally missed your message @Ivano-P. I think the best way is to start new github project with Unity .gitignore and possibly add OS related section if you want to.
@FullStackForger thanks, That's what I did.
@Ivano-P Not sure if that will apply for you but I have started to ignore /UserSettings
folder, mainly because wouldn't want to enforce my settings on others and vice-versa.
Oh yes, I will probably do that when I finish my test version and decide to work with a 3d artist, but in my case I use it to switch to my laptop when I'm on the move so having the same settings if what I want.
Thank you!
I don't fully understand what it is that you trying to do but it seems to me, you are not using git correctly. I would recommend practicing simple git setup without unity first so you get a grip on basics. Have a look at tutorials, like Git basiscs by Atlassian or Git Docs.
.gitignore` is a git specific file, it should be placed at the top level in each repository folder created individual for every unity project. Pasted file doesn't require any edits.