I have Git-Version control on a folder on my computer, I create a RStudio-project based on that folder, and when entering RStudio and selecting the Git
tab on the top right part of the window, I get an endlessly looping symbol. If I try to click Diff
or Commit
or any other button, I get the following message*
Directory name is invalid
In the project options > Git/SVN, I have Git
selected and my origin is None
and I suspect that the problem comes from there. FYI: I cannot change the content of the origin field by hand.
NB: The Git project is intended as a local version control, not for upload / sharing.
*surprisingly the message is in German, even though my RStudio language is English, and my Git language is English, so this above is a translation.
Git is used to keep track of how files change. The changes to files in your project can be in one of two states: unstaged: changes that won't be included in the next commit. staged: changes that will be included in the next commit.
This can be done by opening /your. project/. git/config and editing the remote origin line(s), e.g. changing from git to https. Restart Rstudio & you'll be prompted for your github username & password.
I ran into the same problem. I use localised (Hungarian) windows at the lab. If the path to the project folder contains accented characters the above mentioned message appears. If the accented characters in folder-names are changed to non-accented everything works nicely.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With