Skip to content

Migrate CSV files from LFS to regular Git#1819

Open
tamuri wants to merge 5 commits intomasterfrom
tamuri/move-csv-resources-out-of-lfs
Open

Migrate CSV files from LFS to regular Git#1819
tamuri wants to merge 5 commits intomasterfrom
tamuri/move-csv-resources-out-of-lfs

Conversation

@tamuri
Copy link
Collaborator

@tamuri tamuri commented Feb 12, 2026

Steps were:

  • Fix root .gitattributes to not put any CSV into LFS
  • Remove doc/.gitattributes
  • Remove each CSV file from the repo
  • Add CSV file back

Important: the history of each of these files will be lost. To see the history, you will need to checkout a commit before the the merge of this PR and look at the history of the file that was in LFS.

- Fix root .gitattributes to not put any CSV into LFS
- Remove doc/.gitattributes
@tamuri tamuri changed the title Migrate CSV file from LFS to regular Git Migrate CSV files from LFS to regular Git Feb 12, 2026
@tamuri
Copy link
Collaborator Author

tamuri commented Feb 13, 2026

Guidance for those with active branches

Do not cherry-pick this commit and bring into your branch.

Hopefully, you are regularly merging changes to the master branch into your branch. If you are not, the best approach is to merge master into your branch now and resolve any conflicts that arise. You should not cherry-pick this commit and merge it into your branch.

If you have CSV files that in your branch that are not in master

After you've merged the master branch into your branch(es) and are up-to-date, you need to do the following process to remove your CSV files from Git LFS and add them back into normal Git. These are the steps:

  1. Get a full list of your CSV files that are in LFS:

    git lfs ls-files --name-only | grep -E "\.csv$"

    If this command lists files that are not yours, despite you having merged master, something has gone wrong and you need to raise an issue.

  2. For each of your files listed above, remove them from Git LFS. This will not remove them from disk. It only stops Git tracking them: e.g.

    git rm --cached /path/to/my/csv/file

  3. Add each of your CSV files again to Git:

    git add /path/to/my/csv/file

  4. Commit these files. Do not include other files in this commit - only your CSV files that were in LFS and not in master.

Remember, you need to have merged master into your branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant