Skip to content

Commit

Permalink
Add a callout about the default Git branch - main
Browse files Browse the repository at this point in the history
  • Loading branch information
anenadic authored Oct 24, 2024
1 parent c229d61 commit dc0cd15
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions episodes/04-version-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ work on GitHub allowing other people to see and contribute to our work.

### Create a new repository

::: callout

### Default Git branch - `main`

Before we start using Git, if you have not done this step during setup, make sure to tell Git now to use `main`
as the default branch (instead of `master`) which is what we use in this course:

```bash
$ git config --global init.defaultBranch main
```

:::

Create a new directory in the `Desktop` folder for our work, and then change the current working directory
to the newly created one:

Expand All @@ -111,10 +124,10 @@ $ mkdir spacewalks
$ cd spacewalks
```

We tell Git to make `spacewalks` a repository -- a place where Git can store versions of our files:
We will now tell Git to make `spacewalks` a repository -- a place where Git can store versions of our files:

```bash
git init
$ git init
```

We can check everything is setup correctly by asking Git to tell us the status of our project:
Expand Down

0 comments on commit dc0cd15

Please sign in to comment.