diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-02-12 16:36:13 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-02-12 16:36:13 -0400 |
commit | a981846581fe150ac0a1e191d1b0ea1c418cc5fe (patch) | |
tree | deef6444cc71833cad6424f481676cb78df90078 /doc | |
parent | 26d13ffae65e18a65b8b43d469cdcf76b9e7ab25 (diff) |
comment
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment b/doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment new file mode 100644 index 000000000..a80bffe10 --- /dev/null +++ b/doc/forum/multiple_urls_for_the_same_UUID/comment_7_276cb5d94cbd10e9fc7d1cf4ac607273._comment @@ -0,0 +1,27 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 7""" + date="2015-02-12T20:25:12Z" + content=""" +You have two configured git remotes, host1 and host2, with the same +"url = /m/stuff". Only one of these remotes can be accessed at a time, +depending on where the drive is docked. + +So, why not just combine those two remote configs +into a single remote. Call it "host". + +git-annex will automatically notice when the uuid of the repository +pointed to by "host" changes, and it will update the .git/config +appropriately. + +That BTW, happens to be just how I use git-annex with my own USB drive, +and it works great. + +--- + +git annex sync will still try to sync with "host1-net" and "host2-net", as well +as which ever one of the two "host" points to. There's a small redundancy +there, but since it will sync with "host" first, as it knows local file +access is less expensive, the redundant sync will not involve much work. + +"""]] |