Chapter 3. Filesystem interactions

This chapter covers

  • Renaming, moving, and removing versioned files or directories
  • Telling Git to ignore certain files or changes
  • Deleting all untracked or ignored files or directories
  • Resetting all files to their previously committed state
  • Temporarily stashing and reapplying changes to files

When working with a project in Git, you’ll sometimes want to move, delete, change, and/or ignore certain files in your working directory. You could mentally keep track of the state of important files and changes, but this isn’t a sustainable approach. Instead, Git provides commands for performing filesystem operations for you.

Understanding the Git filesystem commands will allow you to quickly perform these operations ...

Get Git in Practice 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.