If I only use git locally and only for me in just a single computer, will it necessary to use git lfs for large assets?
Well, either Git LFS, or just don’t commit large assets. In my fairly large project, the only assets large enough to be concerned with are lighting data and light maps. I use .gitignore to ensure those don’t get committed. They’re generated files, and it’s just not worth committing them given how often they change and how easy they are to generate.
What kinds of files do you have that are pushing 100MB?
thank you dgoyette
The files I concern are mostly images.
I want include them as the version control.
None of them is larger than 50mb.
Thank you, I can forget about git lfs for now.
Yeah, until you start getting massive repos, git lfs can cause more headaches than its worth. For any reasonable size indie project you probably don’t need it. But what @dgoyette said above to ignore things like lightmaps is also a great idea, since that data is derived, if you set the project up properly.
ALSO, be sure you have a good .gitignore file going, one designed for use with Unity. You do NOT want to source control the contents of Library or Temp in your project, just Assets and ProjectSettings.
thank you Kurt-Dekker
yes, git already is a headache for me, luckily I dont have to touch git lfs.
I also just found a .git-ignore file for unity in github gitignore/Unity.gitignore at main · github/gitignore · GitHub
It should be good enough for me.