From 33df1d7a5d7e543824e417f71414ed9780e19fb0 Mon Sep 17 00:00:00 2001 From: Bob Kline Date: Tue, 6 Jul 2021 08:57:08 -0400 Subject: [PATCH] Fix descriptions of untracked files --- book/02-git-basics/sections/recording-changes.asc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/02-git-basics/sections/recording-changes.asc b/book/02-git-basics/sections/recording-changes.asc index d8a586ecf..f863e1eeb 100644 --- a/book/02-git-basics/sections/recording-changes.asc +++ b/book/02-git-basics/sections/recording-changes.asc @@ -4,7 +4,7 @@ At this point, you should have a _bona fide_ Git repository on your local machin Typically, you'll want to start making changes and committing snapshots of those changes into your repository each time the project reaches a state you want to record. Remember that each file in your working directory can be in one of two states: _tracked_ or _untracked_. -Tracked files are files that were in the last snapshot; they can be unmodified, modified, or staged. +Tracked files are files that were in the last snapshot, as well as any newly staged files; they can be unmodified, modified, or staged. In short, tracked files are files that Git knows about. Untracked files are everything else -- any files in your working directory that were not in your last snapshot and are not in your staging area. @@ -54,7 +54,7 @@ nothing added to commit but untracked files present (use "git add" to track) ---- You can see that your new `README` file is untracked, because it's under the "`Untracked files`" heading in your status output. -Untracked basically means that Git sees a file you didn't have in the previous snapshot (commit); Git won't start including it in your commit snapshots until you explicitly tell it to do so. +Untracked basically means that Git sees a file you didn't have in the previous snapshot (commit), and which hasn't yet been staged; Git won't start including it in your commit snapshots until you explicitly tell it to do so. It does this so you don't accidentally begin including generated binary files or other files that you did not mean to include. You do want to start including `README`, so let's start tracking the file.