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.
- Remove the file from the repository's Git history using either the
filter-branchcommand or BFG Repo-Cleaner. For detailed information on using these, see "Removing sensitive data from a repository."
- Configure tracking for your file and push it to Git LFS. For more information on this procedure, see "Configuring Git Large File Storage."