summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawm6MkmwCd_-IACT0uzgy78u0qH1rPLNO_Q <Dan@web>2013-03-06 03:05:58 +0000
committerGravatar admin <admin@branchable.com>2013-03-06 03:05:58 +0000
commit87e9e6eaa80f68b38f850078306825d74e791c06 (patch)
tree6ca7f6634fe3ca3862be18ca1bcb3eb9d0fef3d7
parent91fa7433b8b9958b3e5571541b33357b88282da5 (diff)
initial commit :-)
-rw-r--r--doc/forum/Difference_between_copy__44___move_and_get__63__.mdwn24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/forum/Difference_between_copy__44___move_and_get__63__.mdwn b/doc/forum/Difference_between_copy__44___move_and_get__63__.mdwn
new file mode 100644
index 000000000..a94281a1f
--- /dev/null
+++ b/doc/forum/Difference_between_copy__44___move_and_get__63__.mdwn
@@ -0,0 +1,24 @@
+I'm starting to experiment with git annex. I'd like to use it for a centralized git repo that will be checked out often, but the clones will rarely need some large binary files (used for testing). Therefore, I've set up a centralized/bare git repo and a clone of that repo using the instructions at [centralized_git_repository_tutorial](http://git-annex.branchable.com/tips/centralized_git_repository_tutorial/) and [bare_repositories](http://git-annex.branchable.com/bare_repositories/). I've added some files to the annex in the clone.
+
+I'm struggling to understand the difference between copy, move, and get. Here's a sequence of commands:
+
+ >> git annex add shared/1bel.maegz
+ >> git commit -m "added first file"
+ >> git push
+ >> git annex move shared/1bel.maegz --to origin
+ ## Now it no longer exists in my local repo
+ >> git annex get shared/1bel.maegz
+ fails.
+ >> git annex get shared/1bel.maegz --from origin
+ fails.
+ >> git annex copy shared/1bel.maegz --from origin
+ fails.
+ >> git annex move shared/1bel.maegz --from origin
+ succeeds! Now I have the file in my clone.
+
+Each failure message is:
+
+ fatal: Could not switch to '../.git/annex/objects/W8/gZ/SHA256-s99196--62874e9b58e652c9c01e796c2bf38b2234a80e0cef95c185bb7f0857d9765df2': No such file or directory
+ git-annex: <file descriptor: 6>: hGetLine: end of file
+
+How are copy, move, and get different? Which one *should* I be using to move my large data into the central (bare) repo? Will it then be available to other clones?