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