Version control with RStudio and Git 2.1. This is also an excellent place to learn more about what we will discuss below, without worrying about messing up any actual files. If the above commands in the terminal/command prompt seem like magic, or you just want to learn more about using git, try their excellent online guides that let you learn to write git commands directly in your web browser. It’s a good idea to follow this step since the default editor selected by git is quite difficult to use! You can also configure git to use your preferred editor for commit messages, e.g. On succesful completion, you should see no output from these commands. Git config -global user.email config -global user.name "Your Name" Open a terminal window or command prompt (see above) and type the following: Configure GitĪfter installing git, you need to tell it who you are.
You should see a short message containing some version information (Let us know if you don’t). Open a terminal ( Ctrl+Alt+T often does it).Go to Applications -> Utilities -> Terminal.In the Search or Run line type cmd and press enter In order to connect RStudio with GitHub we need to configure Git, which is the version control software that GitHub is built on.įirst let’s make sure that we have actually installed Git. Let us know if you don’t or you will not be able to go trough the rest of this tutorial. Make and push changes to a branchīy now you should have a GitHub account ( sign up here and get setup here) and Git installed on your laptop ( Download Git here). Setting up a version controlled project in RStudio