Tracking Changes

Brent Laster · 2016

This chapter considers different versions of files at the different levels in Git to keep track of where everything is and how the versions at the different levels may differ from each other. It explains ways to keep track of all of the work that's in progress. Git has two commands that can help with this: status and diff. Using these two commands users can quickly understand the state of their changes in the local environment and ensure that the correct changes are tracked and stored in Git. For files that are in the working directory or staging area, the status command answers three questions: whether or not a file is tracked, what is in the staging area, and whether or not a file is modified. Git can report the status of untracked files in a couple of different ways, depending on whether or not something is staged.

Read the paper · More papers on PaperTik