1

When I do the following command while on a feature branch:

git checkout origin/master foo.js

I get the following error:

$ git checkout origin/master foo.js
Error: unknown command "post-checkout" for "git-lfs"
Run 'git-lfs --help' for usage.

Why is this happening and how do I fix this issue?

Update From this question: Cannot use older version of git-lfs on a repo created using latest version it seems like it may be that I am using an older version of Git-LFS on the master branch compared to the feature branch (I may be wrong).

How can I check which version of GIT-LFS is being used for this feature branch?

Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231

1 Answers1

2

The issue is that v2 has a breaking change.

The solution is to simply update git-lfs!

Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231