Some learners are getting a .Rproj.user directory in their project root and/or code/. This causes a bunch of unnecessary things to show up when they git add .
A couple of thoughts...
- Don't use
git add ., rather, be specific about what files to add - git add file1 file2 etc.
- Do
git status see that there's a .Rproj.user directory and introduce .gitignore and add .Rproj.user to that
I think both are probably good practices to teach people. There's a potential problem they could run into in their future where they accidentally commit a large file and then try to push it. Then Bad Things Happen. By being specific about git add they can reduce the risk of this.