Personalize Git
You only have to do this once per machine.
In order to track changes and attribute them to the correct user, we need to tell Git your name and email address.
The usethis
package includes helpful functions for common setup and development operations in R. Install it by running the command
install.packages("usethis")
from the console in RStudio. Then run the following commands:
library(usethis)
use_git_config(user.name = "Benjamin Soltoff", user.email = "ben@bensoltoff.com")
Replace Benjamin Soltoff
and ben@bensoltoff.com
with your name and email address. Your name could be your GitHub username, or your actual first and last name. Your email address must be the email address associated with your GitHub account.
Acknowledgments
- This page is derived in part from “UBC STAT 545A and 547M”, licensed under the CC BY-NC 3.0 Creative Commons License.