Skip to content

Commit

Permalink
Merge branch 'main' into issue-687
Browse files Browse the repository at this point in the history
  • Loading branch information
erinmgraham authored Jan 10, 2025
2 parents bf25f29 + 9bc5ac5 commit 5401f10
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Instances of abusive, harassing, or otherwise unacceptable behavior
may be reported by following our [reporting guidelines][coc-reporting].


[coc-reporting]: https://docs.carpentries.org/topic_folders/policies/incident-reporting.html
[coc]: https://docs.carpentries.org/topic_folders/policies/code-of-conduct.html
[coc-reporting]: https://docs.carpentries.org/policies/coc/incident-reporting.html
[coc]: https://docs.carpentries.org/policies/coc/
12 changes: 6 additions & 6 deletions episodes/04-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ You should be in the `recipes` directory.
$ cd ~/Desktop/recipes
```

Let's create a file called `guacamole.md` that contains the basic structure to
have a recipe.
Let's create a file called `guacamole.md` that contains the basic structure of a recipe.
We'll use `nano` to edit the file;
you can use whatever editor you like.
In particular, this does not have to be the `core.editor` you set globally earlier. But remember, the steps to create create or edit a new file will depend on the editor you choose (it might not be nano). For a refresher on text editors, check out ["Which Editor?"](https://swcarpentry.github.io/shell-novice/03-create.html#which-editor) in [The Unix Shell](https://swcarpentry.github.io/shell-novice/) lesson.
In particular, this does not have to be the `core.editor` you set globally earlier. But remember, the steps to create or edit a new file will depend on the editor you choose (it might not be nano). For a refresher on text editors, check out ["Which Editor?"](https://swcarpentry.github.io/shell-novice/03-create.html#which-editor) in [The Unix Shell](https://swcarpentry.github.io/shell-novice/) lesson.

```bash
$ nano guacamole.md
Expand Down Expand Up @@ -577,13 +576,14 @@ Two important facts you should know about directories in Git.

Note, our newly created empty directory `cakes` does not appear in
the list of untracked files even if we explicitly add it (*via* `git add`) to our
repository. This is the reason why you will sometimes see `.gitkeep` files in otherwise empty directories. The sole purpose of `.gitkeep` files is to populate a directory so that Git adds it to the repository. The name `.gitkeep` is just a convention, and in fact, you can name these files anything you like.
repository. This is the reason why you will sometimes see `.gitkeep` files
in otherwise empty directories. The sole purpose of `.gitkeep` files is to populate a directory so that Git adds it to the repository. The name `.gitkeep` is just a convention, and in fact, you can name these files anything you like.

2. If you create a directory in your Git repository and populate it with files,
you can add all files in the directory at once by:

```bash
git add <directory-with-files>
$ git add <directory-with-files>
```

Try it for yourself:
Expand Down Expand Up @@ -815,4 +815,4 @@ $ git diff me.txt
- `git commit` saves the staged content as a new commit in the local repository.
- Write a commit message that accurately describes your changes.

::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::
2 changes: 1 addition & 1 deletion episodes/05-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ $ cat ketchup.md # this will print the content of ketchup.md on screen
The answer is 2.

The changes to the file from the second `echo` command are only applied to the working copy,
The command `git add ketchup.md` places the current version of `ketchup.md` into the staging area.
not the version in the staging area.
The command `git add ketchup.md` places the current version of `ketchup.md` into the staging area.

So, when `git commit -m "My opinions about the red sauce"` is executed,
the version of `ketchup.md` committed to the repository is the one from the staging area and
Expand Down
2 changes: 1 addition & 1 deletion episodes/07-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ computers to access your account.
We will run the list command to check what key pairs already exist on your computer.

```bash
ls -al ~/.ssh
$ ls -al ~/.ssh
```

Your output is going to look a little different depending on whether or not SSH has ever been set up on the computer you are using.
Expand Down

0 comments on commit 5401f10

Please sign in to comment.