Module 05 of 10

Version Control & Repo Hosting

Lessons

About This Module

Every codebase changes over time, and sooner or later you'll want to undo a bad change, try an idea safely, or work on the same project as other people. Version control makes all of that possible by recording a complete history of your code, so nothing is ever truly lost.

You'll start with Git from the command line: initializing a repository, staging and committing changes, branching, and merging. Then you'll see how GitHub hosts your repositories online so you can back up, share, and collaborate. Along the way you'll learn how to fix mistakes and undo bad commits, and how to use git stash to set unfinished work aside.

With your code safely tracked and hosted, you'll be ready for the next module, Standard Library & Errors, where you'll explore Python's built-in modules and learn to handle errors gracefully.

Lessons

4 videos
01

Git Tutorial for Beginners: Command-Line Fundamentals

What Git is and how to use it from the command line: configuring Git, staging and committing changes, cloning a remote project, creating a branch, and pushing to a remote repository.

02

Git Tutorial for Beginners - Git & GitHub Fundamentals In Depth

How Git and GitHub work together, including the difference between the two, Git history and branches, and the everyday commands for pushing, pulling, and merging.

03

Git Tutorial: Fixing Common Mistakes and Undoing Bad Commits

How to recover when things go wrong: discarding changes, amending the last commit, and using reset, revert, and reflog to undo bad commits safely.

04

Git Tutorial: Using the Stash Command

How to save changes you aren't ready to commit, switch tasks without losing your work, and bring the stashed changes back when you need them.