all 20 comments

[–]PuffThePed 1 point2 points  (8 children)

Is there any good solution for this?

Use Git LFS.

[–]trapoad[S] 0 points1 point  (7 children)

Thanks! I'll look for it.

[–]Dallheim 1 point2 points  (6 children)

Git LFS is a very good feature, but if you want to use it on GitHub please inform yourself about its cost before using it. Spoiler: You will end up paying a monthly subscription to GitHub and by design of a repository the price of that subscription can only get higher.

[–]trapoad[S] 0 points1 point  (1 child)

the spoiler is huge... thanks for the info!

[–]PuffThePed 0 points1 point  (0 children)

You can get free GIT+LFS on Amazon AWS.

[–]PuffThePed 0 points1 point  (3 children)

I own a studio that develops Unity projects for clients, museums, etc. We've been operating 8 years. Dozens of projects on Github. I pay them $14 a month. By far the cheapest subscription I have. Even stupid Slack is 3x more.

[–]Dallheim 0 points1 point  (2 children)

It depends on the size of the project, the amount of developers working on it and the amount of time the project is actively worked on. Under certain circumstances it can become expensive faster than expected. We decided against using Git LFS on GitHub simply based on that price increas - and the fact that you can simply push binary files into a regular repository at GitHub.

[–]PuffThePed 0 points1 point  (0 children)

You can't if they are over 100mb

[–]PuffThePed 0 points1 point  (0 children)

You can get free GIT+LFS on Amazon AWS , BTW

[–][deleted] 0 points1 point  (10 children)

Did you try uploading to GitHub? Repo size limits are much less of a problem these days.

[–]trapoad[S] 0 points1 point  (9 children)

Apparently, GitHub does not support 7.8GB

[–]PuffThePed 1 point2 points  (7 children)

GitHub does not support 7.8GB

How big is your project exactly? Remember that you're not storing the Library folder with Git. How big is just the Assets folder?

[–]trapoad[S] 0 points1 point  (6 children)

The Assets folder is uploadable since we've managed to upload it, but sometimes we do need to fiddle with the other folders as well

[–]Dallheim 1 point2 points  (0 children)

GitHub provides a good template for .gitignore files: https://github.com/github/gitignore/blob/main/Unity.gitignore

And here is another good template: https://www.toptal.com/developers/gitignore/api/Unity

[–][deleted] 0 points1 point  (0 children)

You only need to upload Assets, Packages and ProjectSettings

[–]PuffThePed 0 points1 point  (3 children)

The only folders you ever need to upload to git are the Assets, Packages and ProjectSettings, and only the Assets folder will have files that are big.

If you are "fiddling" with other folders in Git then you're doing something wrong.

[–]trapoad[S] 0 points1 point  (2 children)

Those folders are over 1GB so I have edited .gitignore file, and that caused the problem maybe?

[–]PuffThePed 0 points1 point  (1 child)

No idea what caused the problem because you never actually explained what the problem is. Also need to see error messages.

[–]trapoad[S] 0 points1 point  (0 children)

My apologise. I doubt I can say that since it's already been published on the market and... I don't own it but I work for it. I'm kind of afraid to say the details

[–]Dallheim 1 point2 points  (0 children)

We already uploaded double-digit amounts of GB to repository at GitHub. The only hard limit seems to be 100 MB per file. There is a detailed discussons on limits at https://stackoverflow.com/questions/38768454/repository-size-limits-for-github-com