Hi All, apologies if this question's been done to death. Am running Windows 10, connecting Git and R Studio for the first time, followed all the required steps and nothing, can't generate the Git tab in Studio.
Have installed Git, generated and copied the SSH to GitHub but the created projects in R are not appearing in GitHub. Somewhere the connection isn't being made. I can see one project in GitHub and three Test projects in Studio. Just wondering if anyone had a suggestion step I might be missing. Thanks.
New day - have reinstalled R, RStudio and Git, and no change. Git still won't appear in RStudio. Something is wrong between Git, RStudio and Windows. For now, I've stopped working with R Studio.
Hi Alexis, Kind thanks for replying. I'm going to start this from the top. There seems to be a 100 ways to link RStudio to Git to GitHub, but here's my process so far.
Created a windows folder - R Projects
Installed R, RStudio, Git, and created a GitHub acc.
Created the same repository in Github - R Projects.
from RStudio > Global Settings > I generated an SSH RSA key.
Pasted this key to GitHub, then, under the Repository, I copied the Push code for Git Bash.
(and this might be where I'm going wrong)
In Git Bash, I pasted in the push code and got:
Bpublish@DESKTOP-0TSM35B MINGW64 ~ (main) ^[[200~git remote add origin https://github.com/mk2mkt/R-Projects.git
bash: '\E[200~git': command not found
Bpublish@DESKTOP-0TSM35B MINGW64 ~ (main)
$ git branch -M main
OK, then let's first try this: open the R project, then select View > Show Git (just in case the tab is hidden somehow).
If this doesn't work, create a new Project (without git), then run usethis::use_git() and see what happens. If you get the questions, say Yes to creating .gitignore and committing, and Yes to restarting.
Hi Jonathan, I initially did that with no effect. Interestingly though, the SSH key keeps defaulting to this 'ed' version rather than the RSA key I generated and applied earlier.