0PricingLogin
Git & GitHub Professional Workflow · Lesson

Staging, Committing, History

Understand the staging area, how to commit changes, and explore your project's commit history using `git log`.

The Git Staging Area

In Git, the staging area (also called the index) is a crucial intermediate step between your working directory and your repository.

Think of it as a waiting room where you prepare changes before permanently saving them.

It allows you to group related changes into a single, meaningful commit.

Adding Files to Staging

To move changes from your working directory into the staging area, you use the git add command.

You specify the file(s) you want to stage. This tells Git, "Hey, I want to include these changes in my next commit!"

git add myfile.txt

All lessons in this course

  1. Staging, Committing, History
  2. Undoing Changes Locally
  3. Branching & Merging Basics
  4. Stashing Work in Progress
← Back to Git & GitHub Professional Workflow