Reset and Clean Git Commands

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:02
    [Introduction to Git Chapter 13]
  • 0:03
    [With Joe Shindelar]
  • 0:06
    In this lesson, we're going to learn about using the git reset
  • 0:09
    and git clean commands.
  • 0:11
    Mostly, we're going to be talking about how to do things like
  • 0:15
    take a file that's already been staged for commit,
  • 0:19
    and remove it from the index.
  • 0:21
    It's important to remember that Git has three different states
  • 0:25
    that a file can be in.
  • 0:27
    You can think of, a file can be in the version that is the most recently
Loading ...

Reset and Clean Git Commands

Loading...

In this lesson we'll take a look at ways that you can remove changes that you've made to the files in your working tree, how to remove something from the index that you've added but later decided that you're not ready to commit, and some other basic working tree and index house cleaning commands.

Additional resources: