Git Fundamentals

Level up with "Git Fundamentals"

Access all lessons in this tutorial.

No spam, unsubscribe at any time.

This is a free tutorial

In exchange for your email address, you'll get full access to this and other free Epic Web Dev tutorials.

Why? First and foremost, your inbox allows us to directly communicate about the latest Epic Web Dev material. This includes free tutorials, tips, and periodic update about trends, tools, and happenings in Web Development that I'm excited about.

In addition to the piles of free Epic Web Dev content, you'll get the earliest access and best discounts to the paid courses when they launch.

There won't be any spam, and every email you get will have an unsubscribe link.

If this sounds like a fair trade, let's go!

Current section: Commands 17 exercises
lesson

Using `git reset` to Refine Your Staging Area

Before we create a commit, we want to make sure that only files and changes that we intend to include are in the index or staged area.

To remove a file from the commit, you can use the git reset command with the filename:

git reset git-status.txt

After running the command, you c

Subscribe to unlock this lesson.

Transcript

00:00 Before we create a commit, we want to make sure that only files and changes that we intend to include are in the index or staged area. To remove the git status file from this commit, type git reset and the filename, git status.txt.

00:17 Running git status again, we see that only these two files are staged for commit, and this file remains untracked. Git reset is the logical opposite of git add, meaning we can use . to reset all of the files.

Full Stack Vol 1
You might also like

Full Stack Vol 1

Kent C. Dodds
Kent C. Dodds

A comprehensive guide to full stack development

166 Interactive Exercises ・ Progress Tracking ・ Completion Certificate
Learn more