Skip to content

Posts

Git Basics: Saving Unfinished Work with Stash

A stash temporarily sets aside local edits so you can return to a clean working tree. Practice saving and restoring one tracked file before using it during an interruption. Run …

Read more →

October 9, 2026

Git Basics: Resolving a Merge Conflict

When two branches change the same line differently, Git may need you to decide the final contents. This exercise creates a small conflict, resolves it, and records a merge commit. …

Read more →

October 9, 2026

Git Basics: Practicing Fetch Pull and Push Locally

A remote can be another directory on your computer. Use a local bare repository to practice sharing commits without an account, network connection, or changes to a real project. …

Read more →

October 9, 2026

Git Basics: Marking a Version with an Annotated Tag

A tag gives a particular commit a memorable name. An annotated tag also stores a message and tagger information, making it useful for a version you want to identify later. Run …

Read more →

October 9, 2026

Git Basics: Ignoring Generated Files

A build directory or local log usually does not belong in a commit. A project’s .gitignore records patterns for files Git should leave untracked. Run these commands in Bash with …

Read more →

October 9, 2026

Git Basics: Unstaging Edits and Reverting a Commit

Before undoing a change, check where it lives: the working file, the staging area, or an existing commit. This exercise preserves your edit when unstaging, then reverses a …

Read more →

October 9, 2026

Git Basics: Staging Files and Making a Commit

Git records project snapshots as commits. The staging area lets you choose what the next snapshot will contain. Start with one file so you can see each step. Run these commands in …

Read more →

October 9, 2026

Git Basics: Reviewing Staged and Unstaged Changes

A file can contain both staged and unstaged edits. Git’s diff commands answer different questions depending on which two versions they compare. Run these commands in Bash with Git …

Read more →

October 9, 2026

Git Basics: Finding Changes in Commit History

Git history helps answer what changed and why. A short commit list gives you an overview; a patch shows the actual edit behind a message. Run these commands in Bash with Git 2.28 …

Read more →

October 9, 2026

Git Basics: Creating a Branch and Merging It

A branch is a movable name for a commit. It lets you develop a change separately, then bring that work into another branch when it is ready. Run these commands in Bash with Git …

Read more →

October 9, 2026