Git LFS not recognized in terminal

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:

      Windows 10 64bit

      Sourcetree 2.4.7.0

      Embedded git version 2.15.1 / LibGit2Sharp 0.24.0 + git-lfs v2.3.4 + Git LFS Bitbucket Adapter v1.0.6

      Java 8 update 131

    • Severity 1 - Critical

      I have somehow ended up in a problematic situation where I need to perform "git lfs migrate import" to fix an incorrect dirty state "git Encountered file(s) that should have been pointers, but weren't"

       

      But the git terminal does not recognize any git lfs commands.

      Using the embedded git, which was up-to-date but I updated again just in case.

       

      Have tested this again in a repo which is working fine (no problems with dirty state)
      Checkout with LFS works ok

      Terminal does not recognize lfs at all.

       

      Steps to reproduce:

      check out repository that uses git-lfs

      lfs files are checked out correctly

      open terminal

      type "git lfs version"

      "git: 'lfs' is not a git command. See 'git --help'."

       

      Also tried a command "git checkout --force" which fails, even though git-lfs is not explicitly mentioned, git refuses to work because of the lfs hooks

            Assignee:
            Unassigned
            Reporter:
            BrechtK
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: