diff options
author | dermungo@19d0cb1f22d4169b48363cfff60c9ede2c14fffa <dermungo@web> | 2017-01-13 14:54:40 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2017-01-13 14:54:40 +0000 |
commit | 14ffed704d69e82340dd1eb6f906a481362bc6b6 (patch) | |
tree | 466cbe7609203a9f9ccfff87b066b83835950b37 | |
parent | a4bba5513844d9bf67af423c2b775b63f11c3206 (diff) |
Added a comment: Work around
-rw-r--r-- | doc/bugs/silently_failing_when_attempting_to_add_ignored_files/comment_2_9fe7fd6296db34ee8ee07fe68459e74b._comment | 17 |
1 files changed, 17 insertions, 0 deletions
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 000000000..fca560ce4 --- /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 <http://stackoverflow.com/questions/26678955/un-ignore-all-files-in-global-gitignore> by creating a .gitignore in the annexed repo with the pattern +``` +!* +``` + +Now it automatically adds everything (except dotfiles) when running `git annex add $DIRPATH`. +"""]] |