From 739b0a685432bd6a0765b7a231d5188046538691 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 8 May 2019 15:42:05 +0200 Subject: Finish (and improve) git-annex commands, using v7 database. --- USE.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/USE.md b/USE.md index c2c0212..edbb429 100644 --- a/USE.md +++ b/USE.md @@ -33,22 +33,24 @@ Examples: ## Create - -To turn a folder into a git repository, +To turn a folder into a git repository +(see also alternative of (cloning)[#Clone] an existing project), go into the folder, and initialize its git and git-annex databases: git init - git annex init + git annex init --version=7 To use git-annex only for large files (git for smaller ones), -add e.g. the following to .gitattributes -(and (save)[#Save] that file): +add e.g. the following to file `.gitattributes`: + + * annex.largefiles=((largerthan=100kb)and(not(mimetype=text/*))) + *.svg annex.largefiles=nothing - * annex.largefiles=(largerthan=100kb) +Finally (save)[#Save] all content: -Alternatively, -(clone)[#Clone] an existing project. + git add -A + git commit -m "Initial commit" ## Status @@ -83,10 +85,10 @@ in one go: To collaborate on a shared git repository, first create a local clone from the shared location, -and then FIXME: +and tell git-annex to use it: git clone git://[[!template id=githost]]/example - git annex FIXME + git annex init --version=7 Then from time to time syncronize: -- cgit v1.2.3