Use unity with git LFS

Viewed 3968

I'm trying to use git lfs with my unity project, but since i'm quite new to git , i'm not sure how should i make lfs track the files.

Here is a link of git ignore files i found, i suppose i should make git lfs track everything in gitignore? (https://github.com/github/gitignore/blob/master/Unity.gitignore)

But should i first git-add all the files i have in that project and then use git-lfs-track to add the files in that link to lfs? I'm extremely new to git, so if there's someone could provide me a step by step guide would be most appreciated.

Cheers

2 Answers

Use LFS with Git in Unity is not onle a good idea, is your only option if you don't want to fill your hard drive.

Without Git LFS you are storing your assets on your computer everytime you make a commit. This makes sense with code or text files, not with binaries.

If you don't use Git lfs, try SVN or any other service instead.

Related