Module 03 of 12

The Core Git Workflow

Lessons

About This Module

Most of your time with Git is spent in one short loop: change some files, check what changed, stage the changes you want, and commit them with a clear message. Get this loop right and everything else in Git becomes easier, from branching to code review to tracking down when a bug first appeared. This module turns that loop into muscle memory.

You'll practise git status to see where every file stands, git add to choose exactly what goes into the next snapshot, and git commit to record it. You'll use git diff and git diff --staged to review changes before you commit, and git log (with options like --oneline and --graph) to explore history. You'll also learn to write commit messages your teammates and your future self will thank you for, and use a .gitignore file to keep build output, dependencies, and secrets out of your repository.

Watch the lessons in order, then continue on to Branching & Merging.

Lessons

4 videos
01

Git Tutorial for Beginners: Learn Git in 1 Hour

Mosh Hamedani's hands-on tour of the everyday workflow: staging files, committing, checking status, viewing staged and unstaged changes, ignoring files, and browsing history. It's the backbone of this module.

02

Git Log Fully Explained

A deep dive into git log: what its output means, how commits are ordered, and the formatting options (oneline, stat, graph, all, custom formats) and filters that turn history into something you can actually search.

03

How to Write Effective Git Commit Messages

The conventions and industry best practices for commit messages: a short summary line, a blank line, and a body that explains why. This makes history readable and code review easier.

04

Ignore Files in Git with .gitignore

A beginner-friendly guide to creating a .gitignore file, how its patterns work, and why it matters for keeping dependencies, build output, and private files out of your repository.