"Reupload" files that now match the attributes file in lfs #5632
-
Since I'm slowly adding to my .gitattributes. There some files that I missed and were uploaded with normal git instead of in lfs Is there a way to "reupload" these files as lfs? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, The best way to do this is Once you've made that change, |
Beta Was this translation helpful? Give feedback.
-
You might also want to take a look at the
and you discover you also want all
and they should be converted throughout your Git history, and the following will be appended to your
Note that this will rewrite your Git history, creating new commits with new IDs, and so you would then need to force-push your full history to replace the existing one on any remotes. See the |
Beta Was this translation helpful? Give feedback.
Hey,
The best way to do this is
git add --renormalize .
and then commit. You need to do that every time you change.gitattributes
; if you haven't done that for some previous commits, then you need to know that if you ever check those commits out again, you'll end up with permanently modified files as mentioned in the FAQ.Once you've made that change,
git push
orgit lfs push
should push the data.