Add the .git directory and .gitignore to .Rbuildignore