1.3 Working Trees

So far we’ve discussed the repository and talked about all the files you’re storing in it, but we haven’t talked about where you make all of your changes. This happens in your working tree.

The working tree is your current view into the repository. It has all the files from your project: the source code, build files, unit tests, and so on.

Some VCSs refer to this as your working copy. People coming to Git for the first time from another VCS often have trouble separating the working tree from the repository. In a VCS such as Subversion, your repository exists “over there” on another server.

In Git, “over there” means in the .git/ directory inside your project’s directory on your local computer. This means you can look at ...

Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.