Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Trying to Implement Git LFS on Unity Repository

Discussion in 'Editor & General Support' started by arcitek, Feb 23, 2020.

  1. arcitek

    arcitek

    Joined:
    Nov 5, 2019
    Posts:
    18
    Hello, I am trying to get GIT LFS set up for my one repository in Unity. I have successfully used LFS in Unreal but for some reason cannot get it to work in Unity. I installed Git and LFS on this machine. I go throught he GitHub desktop using command line and enter in the appropriate entries but when I go to commit, I get error messages on file sizes and I should use Git LFS. See attached. Any help would be greatly appreciated.
    git.jpg lfs install.jpg
     
  2. arcitek

    arcitek

    Joined:
    Nov 5, 2019
    Posts:
    18
    Am I possibly installing the LFS in the wrong location? I am trying to activate in the ARMSTRONG repository but according to something I found on web below, I would need to add local???

    on all operating systems, once git-lfs is downloaded, git lfs install must be run. Each user that intends to use git lfs must run this command, but they only ever need to run it once. git-lfs can be disabled by running git lfs uninstall, in which case that user would have to run git lfs install again, before git-lfs features work again.


    Some users may wish to only enable git-lfs on specific repositories instead of always having it on for all of the repositories. Instead of running git lfs install and enabling git-lfs for that entire user, git lfs install --local can be used instead on a per repository basis.


    Note: If git-lfs is installed without --local, then git lfs uninstall --local would not disable it for a specific repository.


    An additional option of --skip-smudge can be added to skip automatic downloading of objects on clone or pull. This requires a manual git lfs pull every time a new commit is checked out on your repository. This is more useful for cases where you don't always want to download/checkout every large file.
     
  3. arcitek

    arcitek

    Joined:
    Nov 5, 2019
    Posts:
    18
  4. Avalin

    Avalin

    Joined:
    Oct 12, 2018
    Posts:
    98
    bump, same issue. Did you resolve it?
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,735
    Could it be this snippet from the installation instructions: https://git-lfs.github.com/
    So if these are existing files maybe migrate needs to be run?