Welcome to the NHS-R community repository for Git Training. Code version control is fundamental skill for any analysts, as it provides tonnes of benefits for both you and your project.
- Create your repository as a first step in practising using repositories, How to create a new repository.
- Fork this repository.
- Start a new Codespaces session with your forked repository and follow the steps in our guide to Git (see here for an equivalent guide for Python users or see below for R!).
- Download R and RStudio desktop or create an account on RStudio cloud.
- Install Git via this link, ONLY if you are using RStudio desktop.
- Fork this repository, then git clone your forked repository or create a new repository. It's recommended to practice first by forking and cloning this repository.
- Follow the steps in our guide to git for R users (see here for an equivalent guide for Python users).
- For more information about connecting to Git via RStudio, troubleshooting tips and Git/R features, we'd recommend this guide.
- Practice. After completing the introduction to Git and version control guide, feel free to practice version control by making changes to the files in the practice_scripts folder (add, remove or edit files) and then follow the Git commands workflow to push these changes to your branch for this repository on GitHub.