Summary
In this chapter, we learned how to better manage the contents of the working directory and the staging area in preparation for creating a new commit.
We now know how to undo the last commit, how to drop changes to the working area, how to retroactively change the branch we are working on, and other uses of the git reset
command. We also understand the three (and a half) forms of reset.
We also learned how to examine and search the contents of the working directory, the staging area, and committed changes. We now know how to use Git to copy the file version from the worktree, the index, or the HEAD
commit into the worktree or the index. We can use Git to clean (remove) untracked files.
This chapter explained how to configure how files are handled in the working directory and how to make Git ignore files (by making them intentionally untracked) and why. It described how to handle the differences between line-ending formats between operating systems. It also explained...