Skip to content

Commit

Permalink
Clarify revert text (#47)
Browse files Browse the repository at this point in the history
* Update setup.md

Remove part of the error message if `git-prompt.sh` isn't found.

* Adds in a line about git revert undoing a whole commit vs restore can be used for ind files.
  • Loading branch information
astroDimitrios authored Nov 25, 2024
1 parent 5997632 commit 66cc526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions episodes/06-reverting-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ adds then commits these changes to the local repository.
So `git revert` here is the same as `git restore -s [commit ID]`
followed by `git commit -am Reverts: [commit]`.

`git revert` undoes a whole commit whereas
`git restore -s` can be used restore individual files.

Below are the right steps and explanations for Ahmed to use `git revert`,
what is the missing command?

Expand Down

0 comments on commit 66cc526

Please sign in to comment.