We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4226b5a + db9d7b3 commit a9ef599Copy full SHA for a9ef599
modules/git-lesson/git-slides.md
@@ -160,3 +160,15 @@ Which command saves <b>myfile.txt</b> to my Git repo?<br>
160
- **git add** puts files in the staging area
161
- **git commit** saves the staged content as a new commit in the local repository
162
- Write short, descriptive, and imperative commit messages
163
+
164
+===
165
166
+<!-- .slide: data-state="standard" -->
167
+## Exploring history
168
+<img src="https://esciencecenter-digital-skills.github.io/git-lesson/fig/git-restore.svg">
169
170
+Use `git restore` with the `-s` option to retrieve a specific state.
171
172
+Note:
173
+In this example we restore to the state before the most recent commit,
174
+which is `HEAD~1` or `f22b25e`
0 commit comments