diff --git a/.nojekyll b/.nojekyll index 7fa5e5b..7341dd3 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -cc8e168b \ No newline at end of file +5057411d \ No newline at end of file diff --git a/assets/workflows/github_basic.png b/assets/workflows/github_basic.png new file mode 100644 index 0000000..9ab9bd3 Binary files /dev/null and b/assets/workflows/github_basic.png differ diff --git a/basics.html b/basics.html index e280e35..cd81130 100644 --- a/basics.html +++ b/basics.html @@ -247,14 +247,16 @@
Here is a general guide for installing git for the different operating software.
GitHub account
+If you don’t already have one create a GitHub account.
Authorisations/configuring to github
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.
which git
into your terminal), for Windows, find the git program in your Program Files.R
through the {usethis} package (so install that if you don’t have it - install.packages(“usethis”)). and you can just run usethis::use_git_config(user.name=“Jane Doe”, user.email=“jane@example.org”) in your R console. Replace with your name and the email that is linked to your GitHub accountrepo - short for repository repository - the directory or folder that is under version control local - the repository on your computer remote - the repository on GitHub commit - take a snapshot of one or more files in the repository push - send commits from the local repo to the remote repo pull - retrieve commits from the remote repo to the local repo .gitignore a file that tells git which files or types of files you don’t want to commit
Let’s start by briefly explaining the basic workflow. On GitHub you can make repositories, which is a kind of project. Your online repository, or short repo, is called remote. To use your repository, you need to clone it locally onto your computer and it is then called local. You can write and edit R code locally on your computer. The new code is then committed and pushed back to the remote. If you follow this workflow consistently, GitHub will keep track of all the changes you make.
+