summaryrefslogtreecommitdiff
path: root/tech/git-annex-photo-workflow.txt
blob: d4295414bf80bff92f51e545e1ccde62388273d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Git annex use in workflow - Software - discuss.pixls.us

Setting up git-annex

Create the repository and initialize it.
~$ cd ~/
~$ mkdir Photographs
~$ cd Photographs
~$ git init
~$ git-annex init "My beautiful photographs"
Create a backup repository and initialize it.
~$ cd /media/external/
~$ mkdir Photographs-backup
~$ cd Photographs-backup
~$ git init
~$ git-annex init "A backup of my beautiful photographs"
Let the repositories know about one another:
From ~/Photographs:
~$ git remote add backup /media/external/Photographs-backup
From /media/external/Photographs-backup:
~$ git remote add homedir ~/Photographs
Tell git-annex to keep multiple copies of your files.
~$ echo "*.nef annex.numcopies=2" >> .gitattributes
Tell git-annex to ignore XMP files so you can check them into git (requires git annex version 6.20160126).
~$ echo "*.xmp annex.largefiles=nothing" >> .gitattributes
Add some content.
~$ rsync -rvP --progress /media/camera/DCIM/ ~/Photographs/
~$ cd ~/Photographs/
~$ git-annex add . # note it isn't git add .
~$ git commit -m "Added photos from today's walk."
Sync the content between the repositories.
~$ cd ~/Photographs
~$ git-annex sync --content


visit site:https://discuss.pixls.us/t/git-annex-use-in-workflow/2028/7