document importtree=yes

This commit is contained in:
Joey Hess 2019-04-10 09:46:27 -04:00
parent 6babb2c73f
commit 3b6ea2c244
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -5,10 +5,10 @@ allows connecting to it in various ways like a USB cable or wifi.
## example
To make git-annex store files in the /sdcard/annex directory
on the Android device, and export the current master tree to it:
To add a remote for the /sdcard/DCIM directory
on the Android device, allowing to import and export photos:
git annex initremote android type=adb androiddirectory=/sdcard/annex encryption=none exporttree=yes
git annex initremote android type=adb androiddirectory=/sdcard/DCIM encryption=none exporttree=yes importtree=yes
git annex export master --to android
## configuration
@ -28,6 +28,10 @@ the adb remote.
special remote. Since this makes the exported files easily browsable
on the Android device, you will almost always want to enable this.
* `importtree` - Set to "yes" to make this special remote usable
by [[git-annex-import]]. When set in combination with exporttree,
this lets files be imported from it, and changes exported back to it.
* `encryption` - One of "none", "hybrid", "shared", or "pubkey".
See [[encryption]].