1

As some *.jpg files already tracked by git,then git lfs track '*.jpg' cannot track those files.
How to make those *.jpg free from git HEAD(latest status)?

kittygirl
  • 2,255
  • 5
  • 24
  • 52

1 Answers1

2

As detailed in "Moving a file in your repository to Git Large File Storage"

If you've set up Git LFS, and you have an existing file in your repository that needs to be tracked in Git LFS, you need to first remove it from your repository.

  1. Remove the file from the repository's Git history using either the filter-branch command or BFG Repo-Cleaner.
    For detailed information on using these, see "Removing sensitive data from a repository."
  2. Configure tracking for your file and push it to Git LFS. For more information on this procedure, see "Configuring Git Large File Storage."
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250