File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
book/02-git-basics/sections Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ You can see that the changes have been reverted.
137
137
[IMPORTANT]
138
138
=====
139
139
It's important to understand that `git checkout \-- <file>` is a dangerous command.
140
- Any local changes you made to that file are gone -- Git just replaced that file with the most recently- committed version.
140
+ Any local changes you made to that file are gone -- Git just replaced that file with the last staged or committed version.
141
141
Don't ever use this command unless you absolutely know that you don't want those unsaved local changes.
142
142
=====
143
143
@@ -230,6 +230,6 @@ Changes to be committed:
230
230
[IMPORTANT]
231
231
=====
232
232
It's important to understand that `git restore <file>` is a dangerous command.
233
- Any local changes you made to that file are gone -- Git just replaced that file with the most recently- committed version.
233
+ Any local changes you made to that file are gone -- Git just replaced that file with the last staged or committed version.
234
234
Don't ever use this command unless you absolutely know that you don't want those unsaved local changes.
235
235
=====
You can’t perform that action at this time.
0 commit comments