diff options
author | Jonas Smedegaard <dr@jones.dk> | 2019-05-08 15:42:05 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2019-05-08 15:42:05 +0200 |
commit | 739b0a685432bd6a0765b7a231d5188046538691 (patch) | |
tree | b0509c6be6e87c68e1127ccf41f3c7d632dceabc | |
parent | cd87d19c52a147e52a97cf8a8d17958b56776c33 (diff) |
Finish (and improve) git-annex commands, using v7 database.
-rw-r--r-- | USE.md | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -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: |