O'Reilly logo

Mastering RStudio – Develop, Communicate, and Collaborate with R by Maximilian H. Nierhoff, Julian Hillebrand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using branches

A big advantage of Git is that we can not only use it really well for smaller projects, on which just a few people work, but also for much bigger software projects on which several hundred developers work. And so, Git provides a lot of different tools to manage all kinds of different situations.

One of the most important functions is called Branches. They give us the ability to try out something experimental or split our commits. The default branch is master. So, you actually have already been using branches, as this branch was where you committed all your changes to.

We can create our own branches with the checkout function:

git checkout –b <branch name>

After we create our new branch, we can see it in the Git pane in RStudio. So, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required