From d7800f792321900303140a2bf7c26a1f29237774 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Feb 2015 13:25:13 -0400 Subject: [PATCH] comment --- ...1_3d7c8917633a6632f22385b8f7a98ccf._comment | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/forum/Add_annex_files_outside_git_root_directory/comment_1_3d7c8917633a6632f22385b8f7a98ccf._comment diff --git a/doc/forum/Add_annex_files_outside_git_root_directory/comment_1_3d7c8917633a6632f22385b8f7a98ccf._comment b/doc/forum/Add_annex_files_outside_git_root_directory/comment_1_3d7c8917633a6632f22385b8f7a98ccf._comment new file mode 100644 index 0000000000..c0a433f947 --- /dev/null +++ b/doc/forum/Add_annex_files_outside_git_root_directory/comment_1_3d7c8917633a6632f22385b8f7a98ccf._comment @@ -0,0 +1,18 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-02-04T17:19:46Z" + content=""" +git-annex should have no difficulty doing that, and in fact its test +suite includes some adds of files in subdirs. + +The most likely reason for this behavior would be if you have configured +a `.gitignore` file (or other method of configuring gitignore) to +exclude the file you want to add. If so, "git annex add --force +mydir/myfile" would override the gitignore. + +Internally, git-annex add runs "git ls-files --others --exclude-standard" +and passes it the files/dirs you specified to add, and then adds +the files that command lists. So you can run that command and see +what it lists too. +"""]]