git in RStudio

This tutorial aims to provide you with the step-by-step guide on how to setup Git with R and RStudio.

Dr. KAM Tin Seong,
Associate Professor of Information Systems (Practice) https://www.smu.edu.sg/faculty/profile/9618/KAM-Tin-Seong
05-22-2021

Installing Git

To get started, you need to install Git in your computer. Additionally you will also need a GitHub account.

Setup Git in RStudio

This step aims to tell RStudio where to find the Git installation.

Your screen should look similar to the screenshot below.

If there is not setting or the setting is at the wrong path,

Configure Git

In this step, you will configure Git and set your user name and email (the email address you used to register on GitHub). You can directly open the Git prompt from within RStudio.

Note: User name and email needs to be set only once.

Note: the user.name should be the user name on Github and the user.email should be the email address you used to create Github account.

Reference