From 31857bec77a33413bbf4f08ea5296aa9eae2007d Mon Sep 17 00:00:00 2001 From: "dermungo@19d0cb1f22d4169b48363cfff60c9ede2c14fffa" Date: Fri, 13 Jan 2017 14:54:40 +0000 Subject: [PATCH] Added a comment: Work around --- ..._2_9fe7fd6296db34ee8ee07fe68459e74b._comment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/bugs/silently_failing_when_attempting_to_add_ignored_files/comment_2_9fe7fd6296db34ee8ee07fe68459e74b._comment diff --git a/doc/bugs/silently_failing_when_attempting_to_add_ignored_files/comment_2_9fe7fd6296db34ee8ee07fe68459e74b._comment b/doc/bugs/silently_failing_when_attempting_to_add_ignored_files/comment_2_9fe7fd6296db34ee8ee07fe68459e74b._comment new file mode 100644 index 0000000000..fca560ce41 --- /dev/null +++ b/doc/bugs/silently_failing_when_attempting_to_add_ignored_files/comment_2_9fe7fd6296db34ee8ee07fe68459e74b._comment @@ -0,0 +1,17 @@ +[[!comment format=mdwn + username="dermungo@19d0cb1f22d4169b48363cfff60c9ede2c14fffa" + nickname="dermungo" + avatar="http://cdn.libravatar.org/avatar/4f4b91e2275a6673506e2990a4f96270" + subject="Work around" + date="2017-01-13T14:54:40Z" + content=""" +Perhaps other people knew this already, but I thought I would post it here in case someone else has trouble finding a solution to this issue. + +I use a global gitignore that ignores most of the files I want to have in my annex. +The solution was to override my global .gitignore according to this answer at SO by creating a .gitignore in the annexed repo with the pattern +``` +!* +``` + +Now it automatically adds everything (except dotfiles) when running `git annex add $DIRPATH`. +"""]] -- 2.30.2