update tip

This commit is contained in:
Joey Hess 2014-12-01 19:08:15 -04:00
parent 4b0d574e48
commit 5c1c55eaf4
2 changed files with 24 additions and 0 deletions

View file

@ -1,6 +1,9 @@
Back from the holiday, catching up on traffic. Backlog stands at 113
messages.
Here's a nice tip that Giovanni added:
[[tips/publishing_your_files_to_the_public]] (using a public S3 bucket)
Just before going on break, I added a new feature that I didn't mention
here. `git annex diffdriver` integrates git-annex with git's external diff
driver support. So if you have a smart diff program that can diff, say,

View file

@ -0,0 +1,21 @@
[[!comment format=mdwn
username="joey"
subject="""nice tip"""
date="2014-12-01T22:59:58Z"
content="""
Thanks Giovanni for that nice tip!
You can additionally publish the whole git repository
by eg pushing it to github. (Not if it contains private files
or if you have embedded encryption keys or credentials though.)
You can tell git-annex the public url for the files too, and then others
can just clone the git repository and use git-annex to download the files
from S3.
You could set that up by running something like this:
for filename in $(git annex find --in public-s3); do
git annex addurl --file "$filename" https://public-annex.s3.amazonaws.com/"$(git annex lookupkey $filename)"
done
"""]]