I'm using RStudio + GitHub for a grad intro stats course. One student has an issue that I have been unable to sort out & have not found in the 20+ posts online about a similar, but slightly different issue.
Basically, after they clone a repo to their pc and open the project in RStudio, the git tab is present, but it is entirely empty. There's no .gitignore in the git tab. When they edit a .Rmd in the Project and hit save, it does not appear in the git tab.
They can "pull" down changes in class repos. But the tab still remains empty. So they have no way to commit or push.
Unlike other students, they are also prompted to enter their github user & pwd to pull updates to cloned repos from inside RStudio, but it works, the updated files appear locally.
They are using a macbook air. Things we've tried and verified.
- Git is installed. I used which git in terminal & checked the git path in the preferences tab.
- We set up her SSH key in RStudio & added it to their github (other students didn't have to do this step, but I was desperate)
- In terminal, they did these steps
git config --global user.name 'Jane Doe'
git config --global user.email 'jane@example.com'
- We re-cloned the a class repo, and I opened the project confirming that there was a file, pulled changes just to test the connection, edited a .Rmd, and the changed file still did not show up in the git tab.
Any other suggestions or ideas welcome. Thanks!