From 714b33796262c93b2534c6d36f02a52e6a37e465 Mon Sep 17 00:00:00 2001 From: Christian Haselgrove Date: Mon, 30 Dec 2024 15:08:50 -0500 Subject: [PATCH] Add basic configuration to git tutorial --- content/resources/tutorials/git.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/resources/tutorials/git.md b/content/resources/tutorials/git.md index fd53da2..0054e1b 100644 --- a/content/resources/tutorials/git.md +++ b/content/resources/tutorials/git.md @@ -45,10 +45,17 @@ Before I show you specific steps, I think it is useful to learn more about the c ## Step by step guide -### Step 1: Installing the Necessary Tools +### Step 1: Install the Necessary Tools If you are using Linux or OSX, you will likely already have `git` installed, you can open your terminal and try typing `git –help`. If you need to install on your own, you can follow the instructions from the [website](https://git-scm.com/downloads) (if you are a windows user you might want to install `bash shell` that comes with `git`, you can follow [the instructions](https://carpentries.github.io/workshop-template/install_instructions/#shell)). +If you have not yet set the basic git configuration, run: + +``` +git config --global user.name "Your Name" +git config --global user.email youremail@example.com +``` + ### Step 2: Creating the repository and adding new file I recommend watching [the ReproNim/ABCD course lesson, starting from minute 35](https://www.youtube.com/watch?v=SyKmry47SsY&t=2139s&ab_channel=ABCD-ReproNimCourse), if you want to have a bit more guidance (you can start from watching minutes 35-46).