Trying to connect GitHub account to RStudio cloud but when I try to commit a test script, even though I've told Git who I am, RStudio cloud still gives an error saying it doesn't know which email/username to use. Most information about how to connect them is specific to the downloaded version of RStudio, but I unfortunately need to use RStudio cloud.
Steps I took:
I tried putting those commands into the console just in case but it says "unexpected symbol in "git config"".
I also looked at this github post: and tried their suggestions but no dice. (ie "git remote -vv" just returns "unexpected symbol in "git remote"")
Thank you for any time you spend, I am extremely new to all programming and trying to learn through a course that is requiring me to do this.
You can see a similar case in this issue
In the RStudio Terminal (not the Console but the tab next to it --- the prompt should have a $
and not >
), type
$ git config --list --show-origin
If you see nothing related to your GitHub user ID or email or the information is incorrect, continue to the next step.
One at a time, type
$ git config --global user.name "<username>"
$ git config --global user.email "<email@address.edu>"
replacing <username>
with your GitHub ID or name and <email@address.edu>
with your email, leaving the quotes in both cases
Type
$ git config --list --show-origin
again to confirm that information is now stored (it should print to the Terminal output).
Use Git to confirm it has worked.