summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar aloukian@c071735c08bc04266b792aa478ad1bae2d6a8b50 <aloukian@web>2015-09-10 18:23:48 +0000
committerGravatar admin <admin@branchable.com>2015-09-10 18:23:48 +0000
commit705dd571c13ad959a22b18055fd617856fe0c4a2 (patch)
treeea503d2d03b708f453d4ec021d9a0fb2414633d2 /doc
parentcdbd31e4555e509a590da32ea4f93c70401cf8cc (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/Add_file_to_git_index_while_in_direct_mode.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/forum/Add_file_to_git_index_while_in_direct_mode.mdwn b/doc/forum/Add_file_to_git_index_while_in_direct_mode.mdwn
new file mode 100644
index 000000000..e1678e95c
--- /dev/null
+++ b/doc/forum/Add_file_to_git_index_while_in_direct_mode.mdwn
@@ -0,0 +1,20 @@
+Hi,
+
+Is there a preferred way to add files to git's index (instead of the annex) while in direct mode?
+
+I am trying to use git-annex for scientific data. On linux and mac in indirect mode, the git workflow is basically unchanged, and I really like the way git annex works. Unfortunately when I use git-annex on Windows, I have not found a good way to add things to git's tree.
+
+I've tried two things:
+
+```
+$ git annex proxy -- git add smallfile
+```
+
+This is slow because it has to copy things over to create a work tree
+
+```
+$ git config annex.largefiles="*.pdf or *.h5"
+$ git annex add largefile.pdf
+```
+
+This doesn't seem to work as well as I'd like either. I'd like the equivalent of a ```git add``` command in direct mode.