Skip to content

Commit

Permalink
replace link to read about undoing commits changes
Browse files Browse the repository at this point in the history
  • Loading branch information
avallecam committed Nov 12, 2023
1 parent d05790a commit f65b3af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion episodes/05-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ else has committed changes to the repository.

Commands like `git checkout` and `git revert` are useful but so similar that it's very easy to mix them up!

With the concepts learned in this episode, we invite you to read this chapter on [resetting, checking out and reverting](https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting).
With the concepts learned in this episode, we invite you to read this chapter on [undoing commits and changes](https://www.atlassian.com/git/tutorials/undoing-changes).

:::::::::::::::::::::::::

Expand Down Expand Up @@ -652,6 +652,12 @@ $ git log --patch HEAD~9 *.Rmd

::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::: checklist

[Use `git diff` to compare changes since last commit or between commits. Use `git checkout` to undo changes by restoring the staging area (committed changes) or the local repository (last commit)](cut-git-verb_map-08.png)

:::::::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::: keypoints

- `git diff` displays differences between commits.
Expand Down

0 comments on commit f65b3af

Please sign in to comment.