WEEK 7 · LESSON 3 · TOPIC 3 OF 8 · Unstaging Changes

Unstaging Changes

Lesson progress

0% Complete

SECTION 1 OF 1

In this topic · 1 sections
  1. Overview

Overview

To move staged changes back out of the staging area without discarding the working-directory edits, use:

git reset

After reset, the files remain modified, new, or deleted in the working directory, but they are no longer selected for the next commit.

This is useful when a broad add command included too much or when you want to reorganize the next commit.