{"action":"opened","issue":{"url":"https://api.github.com/repos/ropensci/git2r/issues/148","labels_url":"https://api.github.com/repos/ropensci/git2r/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/git2r/issues/148/comments","events_url":"https://api.github.com/repos/ropensci/git2r/issues/148/events","html_url":"https://github.com/ropensci/git2r/issues/148","id":80852592,"number":148,"title":"Add equivalent of --force to add?","user":{"login":"richfitz","id":1558093,"avatar_url":"https://avatars.githubusercontent.com/u/1558093?v=3","gravatar_id":"","url":"https://api.github.com/users/richfitz","html_url":"https://github.com/richfitz","followers_url":"https://api.github.com/users/richfitz/followers","following_url":"https://api.github.com/users/richfitz/following{/other_user}","gists_url":"https://api.github.com/users/richfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/richfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richfitz/subscriptions","organizations_url":"https://api.github.com/users/richfitz/orgs","repos_url":"https://api.github.com/users/richfitz/repos","events_url":"https://api.github.com/users/richfitz/events{/privacy}","received_events_url":"https://api.github.com/users/richfitz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-26T08:15:33Z","updated_at":"2015-05-26T08:15:33Z","closed_at":null,"body":"As documented in the reference, `git2r::add` does not add files that are ignored.  However, this is causing me problems where files are blanket ignored by a global gitignore (e.g., .gz files) and I can't override this.\r\n\r\nI also tried a overriding the ignore with a .gitignore file that contained:\r\n\r\n```\r\n!*.gz\r\n```\r\n\r\nwhich overrides the ignore with system git, but git2r still did not add the files."}}