Listing 1.7. An augmented .gitignore file.

The .gitignore file in Listing 1.6 is a good start, but for convenience
and security (Listing 3.2) I recommend using Listing 1.7 instead. This
augmented .gitignore arranges to ignore Rails documentation files, Vim
and Emacs swap files, and (for OS X users) the weird .DS_Store
directories created by the Mac Finder application. If you want to use
this broader set of ignored files, open up .gitignore in your favorite
text editor and fill it with the contents of Listing 1.7.