Skip to content

Commit b122b5a

Browse files
authored
Merge pull request #364 from vogella/master
Replaced the usage of working directory with working tree in the basi…
2 parents e9bba60 + 9e4d415 commit b122b5a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/01-introduction/sections/basics.asc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,23 @@ Committed means that the data is safely stored in your local database.
8282
Modified means that you have changed the file but have not committed it to your database yet.
8383
Staged means that you have marked a modified file in its current version to go into your next commit snapshot.
8484

85-
This leads us to the three main sections of a Git project: the Git directory, the working directory, and the staging area.
85+
This leads us to the three main sections of a Git project: the Git directory, the working tree, and the staging area.
8686

87-
.Working directory, staging area, and Git directory.
88-
image::images/areas.png["Working directory, staging area, and Git directory."]
87+
.Working tree, staging area, and Git directory.
88+
image::images/areas.png["Working tree, staging area, and Git directory."]
8989

9090
The Git directory is where Git stores the metadata and object database for your project.
9191
This is the most important part of Git, and it is what is copied when you clone a repository from another computer.
9292

93-
The working directory is a single checkout of one version of the project.
93+
The working tree is a single checkout of one version of the project.
9494
These files are pulled out of the compressed database in the Git directory and placed on disk for you to use or modify.
9595

9696
The staging area is a file, generally contained in your Git directory, that stores information about what will go into your next commit.
9797
It's sometimes referred to as the ``index'', but it's also common to refer to it as the staging area.
9898

9999
The basic Git workflow goes something like this:
100100

101-
1. You modify files in your working directory.
101+
1. You modify files in your working tree.
102102
2. You stage the files, adding snapshots of them to your staging area.
103103
3. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.
104104

0 commit comments

Comments
 (0)