I am trying to commit my script changes inside RStudio, but I always get an error about not having a git account to refer to.
I have already tried to run in RStudio's Terminal:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Then I confirm that my account is correctly recognized:
$ git config --global --list
user.email=my@email.com
I also refreshed the Git tab, and reopened the commit window, to no avail.
I checked Tools --> Version Control --> Project Setup...
, which show my project URL correctly.
I expected to be solved after my e-mail being shown by the Terminal, but that's not the case.
Apparently, the solution was to sign in with my user.name instead of my user.email:
git config --global user.name "Your Name"
Indeed, I already put that line in my question, but I had only tried the user.email one (I thought they would be interchangeable).