I have a question on setting up a new repo. Is it possible to initialize a new repo using files which are already local on say my laptop, instead of downloading them from a S3 remote repository? Sorry if this is unclear. But I'm trying to make use of the files that are local on my laptop so I don's have to go through the ordeal of downloading them from S3.
I should also mention that I don't have a complete set of all the files locally on the laptop vs. what's already in the S3 repository.
Hi,
just copy the local File into the annex again, replacing the symlinks. If you have the assistant running, it should re-add the files automatically, otherwise you can 'git annex add' them manually.
You can also use
git annex reinject
to feed in contents of specific files, without needing to directly touch the files in the repository.Or, you can check all the local files into a temporary directory. Either the assistant or a manual
git annex add
will notice if these files have the same content as files already in the repository. The files will then be available in two locations, the temp directory and wherever it was checked into your repository before. You can then delete the temp directory.