Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to merge git branches in RStudio

I am a beginner to Git and GitHub. I came across tutorials on working with Git using RStudio. Instead of working from git bash RStudio offers a GUI type connection with Git and Github. Can someone tell me whether is it possible to merge git branches in RStudio? If so, how to do that?

Thank you :)

like image 306
Abiram Avatar asked Dec 06 '17 06:12

Abiram


People also ask

How do I merge git branches?

To merge branches locally, use git checkout to switch to the branch you want to merge into. This branch is typically the main branch. Next, use git merge and specify the name of the other branch to bring into this branch.

Can we merge two branches in git?

Git merge will combine multiple sequences of commits into one unified history. In the most frequent use cases, git merge is used to combine two branches.


1 Answers

I don't think that you can do that directly from the GUI of Rstudio.

You can (in Rstudio) go to GIT -> More -> Shell and perform the commands, but this is similar to just working from git bash.

(fatherly advice: learn git from the command line, it will benefit you in the long run, when you have to deal with more serious git-issues)

like image 200
Jagge Avatar answered Oct 10 '22 11:10

Jagge