5/28/2023 0 Comments Merge a branch to master git![]() ![]() If testing had pointed to a different commit, the state of the files in your working area might have changed.In this case nothing exciting happened because testing and master both point to the same commit.In the shell, or use the dropdown menu by clicking on the Branch Indicator in RStudio. If we want to be on a branch we need to “check that branch out”. We should still be on master because we have not “checked-out” the testing branch yet. No worries, upper right of the git pane tells us. However the visual there doesn’t tell us which branch we are one (where HEAD is attached.).They all have the same parent and history too. ( You might have to hit the refresh button). Notice that RStudio’s git-history shows us that HEAD, master, and testing, all now point to the same commit. In the shell (in the correct directory): git branch testing Now, let’s make a new branch called testing. Rmd file called simple.Rmd and committing it. Let’s “move master forward” by making a new. Look at the “diff” / History window, and notice that there is one commit and HEAD and master are at it: gitignore and branchy.Rproj and commit them. ![]()
0 Comments
Leave a Reply. |