diff --git a/basics.qmd b/basics.qmd index 3bf6de5..1bfbe3f 100644 --- a/basics.qmd +++ b/basics.qmd @@ -22,6 +22,16 @@ If you are a university student you qualify for a [free pro account](https://edu Now that you have installed `git` you need to link it to your GitHub account and make sure that the two are able to 'talk' to each other. Again there are many ways to set this up. We will discuss some of these approaches below. +#### Linking with Terminal + +##### Connecting over HTTPS (recommended) + +If you clone with HTTPS, you can cache your GitHub credentials in Git using a credential helper. For more information, see About remote repositories and Caching your GitHub credentials in Git. + +##### Connecting over SSH + +If you clone with SSH, you must generate SSH keys on each computer you use to push or pull from GitHub. For more information, see About remote repositories and Generating a new SSH key and adding it to the ssh-agent. + #### Linking with RStudio 1. **Tell RStudio where to find the git programme**: Under the Tools menu, open Global Options and go to the Git/SVN section. Then enable the version control interface and make sure RStudio knows where to find git. For MacOS, enter the path (which you can find by typing `which git` into your terminal), for Windows, find the git program in your Program Files. @@ -32,9 +42,6 @@ Now that you have installed `git` you need to link it to your GitHub account and To get started with the GitHub in VS Code, you'll need to create an account and install the [GitHub Pull Requests and Issues extension](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github). Once you have installed the extension, you will need to sign in. Follow the prompts to authenticate with GitHub and return to VS Code. -#### Linking with Terminal - - ::: {.column-margin} ![#94: professortocat_v2 *© GitHub, Inc.*](assets/octocats/Professortocat_v2.png) :::