diff --git a/doc/forum/share_.git__47__annex__47__objects_across_multiple_repositories_on_one_machine/comment_1_1606849eb13b6069394455297395dc30._comment b/doc/forum/share_.git__47__annex__47__objects_across_multiple_repositories_on_one_machine/comment_1_1606849eb13b6069394455297395dc30._comment new file mode 100644 index 0000000000..bd7ece79d9 --- /dev/null +++ b/doc/forum/share_.git__47__annex__47__objects_across_multiple_repositories_on_one_machine/comment_1_1606849eb13b6069394455297395dc30._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="https://id.koumbit.net/anarcat" + subject="use hardlinks" + date="2015-05-29T01:40:21Z" + content=""" +that is a pretty bad idea! :) git-annex will believe it has two copy of the files and could allow you to drop the last copy, and loose data. + +instead, you should clone the repo with `--shared`, like this: + + git clone --shared /tmp/repo-clone1 /tmp/repo-clone2 + +according to the [[git-annex]] manpage, this will set the `annex.hardlink` setting and mark the repo as \"untrusted\". files will be hardlinked between the two repositories, using only the space once. + +see also [[todo/wishlist:_use_hardlinks_for_local_clones/]]. --[[anarcat]] +"""]]