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.
After installing Git LFS and configuring Git LFS tracking, you can move files from Git's regular tracking to Git LFS.
- 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." - Configure tracking for your file and push it to Git LFS. For more information on this procedure, see "Configuring Git Large File Storage."