When using GIT LFS, .gitattributes
controls which files are managed by GIT LFS and which ones are not. According to the documentation, all it takes to move files between GIT LFS and regular GIT storage is to change .gitattributes
.
I have modified .gitattributes
in a Bitbucket repository, but git lfs ls-files
still lists the same files as before, including files that should no longer be managed by GIT LFS and not including files that should now be managed by GIT LFS. Also, committing and pushing the change in .gitattributes
is suspiciously fast.
Is there a command that I can (or have to) run to update the GIT LFS status of all files and move them to the correct storage?