Now that everyone has contributed to the r-rse repository (the upstream repository), the params/
folder contains a number of files, one for each successful pull request.
This is also clear form the commit locator
However your local copy of the repository only contains the template and your own file.
Q: How can I merge changes from the upstream repository to my local repository?
GitKraken Client makes it really simple.
On the left side menu bar, hover over the REMOTE menu until a small button appears.
This should open the Add Remote Tab. Select the r-rse/evolottery
repository from the GitHub Repo dropdown menu and click the
Add Remote
button.
Once added, the r-rse repository will be visible under the REMOTE menu
To pull the upstream changes from the r-rse
repository, grab the r-rse
button from the history panel and drag it over to your local main
branch until a icon appears next to it and drop.
Once you drop it onto the local main
branch successfully, a pop up menu will appear. Select Fast-forward main to r-rse/main. That ensures that you do not create a circular commit of your initial commit to the upstream repo when you are merging it back into your local repo. Find out more about fast-forward git merging.
Once the merge is complete, your local main
will now be showing as synched with the r-rse
remote and you will have copies of all the files contributed in your params/
folder! 🎉
The origin remote is your fork of the repository that’s labelled with your GitHub profile avatar. As you can see, it is now lagging behind the upstream remote and your local copy which are now both in sync. That’s because it’s still missing all the files contributed by the other participants.
To synch your origin remote, Push the changes you’ve just pulled into your local repository.
Once you’ve pushed, all the repositories should now be showing as synced. 🎉
To run the analysis, open the project in Rstudio, click on the plot_trait_evolution.Rmd
, then click on the Knit button. This should render including everybody’s species! See more on Rmarkdown notebooks