Start
- Register a GitHub account
- Install Git
- Install a Git client (optional)
Register
In RStudio, go to Tools > Shell
and tell git
your name and GitHub email by typing:
git config --global user.name 'Ben Williams
- This does not have to be your GitHub username, but can be. Your commits will be labelled with this name, so make it informative to potential collaborators…
git config --global user.email 'ben.williams@alaska.gov'
- This must be the email that you signed up for GitHub.
These commands return nothing.
To check that git
understood you can look at the output of
git config --global --list
Great now go to github and create a new repo (that’s short for repository)
- name the repo
- give it a README
- clone the repo to your local computer
- make changes (locally) and commit them, then push them to github this wll be covered more fully in another location
Resources:
Home