Skip to content

Commit

Permalink
clarify code block that is not run and break out nano steps
Browse files Browse the repository at this point in the history
  • Loading branch information
erinmgraham committed Jan 10, 2025
1 parent 8431683 commit dcf413a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions episodes/04-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,10 @@ Two important facts you should know about directories in Git.
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:
you can add all files in the directory at once by using this command syntax:

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

Try it for yourself:
Expand Down
14 changes: 14 additions & 0 deletions episodes/06-ignore.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ We do this by creating a file in the root directory of our project called `.giti

```bash
$ nano .gitignore
```

Type the text below into the `.gitignore` file:

```
*.png
receipts/
```

Save the file and exit your editor.

Verify that the file contains the files to ignore.

```bash
$ cat .gitignore
```

Expand Down

0 comments on commit dcf413a

Please sign in to comment.