Skip to content

Commit

Permalink
Merge pull request #1016 from jrteuton/patch-1
Browse files Browse the repository at this point in the history
Clarify section on staging during restore
  • Loading branch information
martinosorb authored Oct 8, 2024
2 parents 3c3fd61 + 5813c48 commit 21fad48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions episodes/05-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ Changes not staged for commit:
no changes added to commit (use "git add" and/or "git commit -a")
```
Notice that the changes are currently in the staging area.
Again, we can put things back the way they were by using `git restore`:

Notice that the changes are not currently in the staging area, and have not been committed.
If we wished, we can put things back the way they were at the last commit by using `git restore` to overwrite
the working copy with the last committed version:

```bash
$ git restore guacamole.md
Expand Down

0 comments on commit 21fad48

Please sign in to comment.