This repo is for code to be shared between the Uncertainty Quantification (UQ) group at the University of Exeter.
Please make every effort to follow best practice coding and test your functions.
If you are new to git you could familiarize yourself with this guide from “Widly Inaccurate” and this tutorial from Atlassian. To learn how to use Git with RStudio follow this link.
If you create a new directory please incclude a ReadMe.md
file as a minimum.
In order to get this code you could do it in two different ways either using Terminal or RStudio.
(The following instructions are provided by ExeClim)
First clone the code from the remote repository, make a local development branch example_dev_branch
, let the remote repository (Bitbucket) there is a new branch and then checked it out.
git clone https://user@bitbucket.org/exeteruq_stats/emulators.git
git branch example_dev_branch
git push -u origin example_dev_branch
git checkout example_dev_branch
If changes have been made to local
master and you want to do a merge of the local
master on your example_dev_branch
branch:
git checkout example_dev_branch
git merge master
If changes have been made to the remote
and you want to do a merge of the remote
master onto your example_dev_branch
branch:
git checkout master
git pull origin master
git checkout example_dev_branch
git merge master
Since you have an existing remote Git repository that you want to use as the basis for an RStudio project you should (if you need extra help please follow this guide):
To start operating with the remote repository, create a local development branch example_dev_branch
from RStudio by opening Shell…
git branch example_dev_branch
git push -u origin example_dev_branch
git checkout example_dev_branch
To merge the code from master
branch to your example_dev_branch
on your local machine and update your remote example_dev_branch
(what you see on GitHub)
git checkout example_dev_branch
git merge master
git push