Hi,
I have two questions related to annex.largefiles
, for which I was unable to find the answers.
- Is there a way to transfer my
annex.largefiles
from one repo to the other? I noticed that the property was not adopted when cloning a repo. - On one repo I noticed that I had not set a good
annex.largefiles
. Can I tellgit annex
to reevaluate whether a file should be controlled as a "normal" file or a "largefile" give the updatedannex.largefiles
?
Thanks, Rasmus
No, annex.largefiles is a local git repository configuration.
If you have a specific file in mind, and it is currently stored in the annex, you can always
git annex unannex $file
and thengit annex add
it back, which will re-check the current annex.largefiles configuration.Just to prevent a potential misunderstanding: There are two ways to configure annex.largefiles.
.git/config
, e.g., viagit config annex.largefiles=...
.gitattributes
The first configuration is specific to your local copy of the repository and does not travel with the content, whereas the second one does carry the configuration over to the other repos.