Skip to content

Commit

Permalink
Merge pull request #989 from cgeroux/main
Browse files Browse the repository at this point in the history
Incorrect number of commits before head for shown output.
  • Loading branch information
martinosorb authored Jul 3, 2024
2 parents 6b470fd + 3590ed7 commit e00fb57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/05-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If we want to see the differences between older commits we can use `git diff`
again, but with the notation `HEAD~1`, `HEAD~2`, and so on, to refer to them:

```bash
$ git diff HEAD~3 mars.txt
$ git diff HEAD~2 mars.txt
```

```output
Expand All @@ -93,7 +93,7 @@ well as the commit message, rather than the *differences* between a commit and o
working directory that we see by using `git diff`.

```bash
$ git show HEAD~3 mars.txt
$ git show HEAD~2 mars.txt
```

```output
Expand Down

0 comments on commit e00fb57

Please sign in to comment.