From 65f1240c41e90535da3c5c9feb6d0ef37738c004 Mon Sep 17 00:00:00 2001 From: divB Date: Sat, 10 May 2014 21:29:57 +0000 Subject: [PATCH] --- doc/forum/Workflow_for_adding_files.mdwn | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/forum/Workflow_for_adding_files.mdwn diff --git a/doc/forum/Workflow_for_adding_files.mdwn b/doc/forum/Workflow_for_adding_files.mdwn new file mode 100644 index 0000000000..cb631543fb --- /dev/null +++ b/doc/forum/Workflow_for_adding_files.mdwn @@ -0,0 +1,32 @@ +What is the correct way to add/modify files such that the changes are synchronized? + +Suppose I have a server "server" and a windows client "client" (more after some time); everything direct mode. + +I created the repos on the server: + + cd bin + git init + git annex init server + git annex direct + git annex add . + git annex sync + +On the (Windows) client using cygwin: + + git annex clone ssh://me@server:/srv/bin + cd bin + git annex init client + +Then I want to add files on the client: + + git annex add tools + git annex sync + +At this point I wonder that the data is not copied to the server but only metadata! +I then used + + git annex sync --content + +but then everything from the server is leeched as well (as if I could have called "git annex get .") + +What is the intented workflow such that added/modified files on the client always go to the server, modified/new files from the server are always pulled but ONLY if I previously got the file/directory via "get annex get"?