From e992dd62a20c2df3e4e301c9513ccdf7df2f54c5 Mon Sep 17 00:00:00 2001 From: bripmccann Date: Tue, 9 Apr 2019 17:55:18 -0400 Subject: [PATCH] Reword sentence about losing local changes 1. Avoid awkward idiom, as discussed in https://github.com/progit/progit2/pull/1179#issuecomment-468422175 2. Fix pronoun: As it was written, 'it' would've referred to the subject of the sentence, 'changes'. Besides the singular-plural disagreement, it should've said the _file_ was replaced, not the changes. --- book/02-git-basics/sections/undoing.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/02-git-basics/sections/undoing.asc b/book/02-git-basics/sections/undoing.asc index 8392b5937..a6780602c 100644 --- a/book/02-git-basics/sections/undoing.asc +++ b/book/02-git-basics/sections/undoing.asc @@ -130,7 +130,7 @@ You can see that the changes have been reverted. [IMPORTANT] ===== It's important to understand that `git checkout -- ` is a dangerous command. -Any local changes you made to that file are gone -- Git just copied the most recently-committed version of that file over top of it. +Any local changes you made to that file are gone -- Git just replaced that file with the most recently-committed version. Don't ever use this command unless you absolutely know that you don't want those unsaved local changes. =====