10

Important Git Commands and Metadata

There are hundreds of Git commands and flags. In this chapter, we'll endeavor to review a few of the most important that we have not looked at so far. These include:

  • Creating the stash
  • Listing what's in the stash
  • Retrieving from the stash
  • The clean command for getting rid of unwanted untracked files
  • How to see metadata and choose which data you want to see

Let's start by digging into the stash.

You can find the complete list at http://git-scm.com/docs.

Stash

When we reviewed the five areas of Git, we included an area called the stash, but we did not delve into what the stash is. In short, the stash is a place where you can hold (stash) files you've modified but not yet committed:

Figure 10.1: The five ...

Get Git for Programmers 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.