I am a solo analyst and recently have found out about Version Control. I am attempting to connect R Studio with Github using this guide: https://happygitwithr.com/
I have made it through the first few steps but I recently got stuck on Step 12.4. Specifically I am stuck on the part * Check “Staged” box for README.md .
You probably have a Git repo in the C:\Windows directory. There's no .git folder in your project directory (at least, not one in your screenshot), so Git's found the nearest parent repo. Which is the C:\Windows one.
I would suggest getting rid of the repo in C:\Windows. If you have important work in it*, then clone it into its own project folder and use a lot of git mv in the command line to get the directories looking the way you want.
Then, open your project in R Studio, go to the command line window, and enter the command git init. That'll start a Git repo just for this project.
*Edit: By "important work in it," I mean committed in the repo. Obviously, your C:\Windows directory has a lot of important things. But you should feel safe to delete the repo when you won't lose any committed history. You can see what files are tracked by using the git ls-files command. It'll list all the files tracked by the Git repo.
This is actually the first Repo that I create. I also noticed that I get the following message when I open the Terminal Window within R Studio. I think this might be a possible cause of my issue.
Just figured it out! It is related to the error above. I was trying to access the UNC path which is not allowed in this case. I moved the location of my R Project file to somewhere on my C:\ drive and the problem was fixed. Thank you or your help!