Syllabus

  1. 01Git Basics: The Everyday WorkflowLearn what version control is for, then follow a change through Git's three areas with init, status, add, diff, commit and log.7 lessons
    1. 01Why Version Control?
    2. 02Setting Up and Starting a Repository
    3. 03The Three Areas and git add
    4. 04Seeing Changes with git diff
    5. 05Saving Snapshots with git commit
    6. 06Browsing History with git log
    7. 07Review: The Basic Workflow
  2. 02Backtracking: Undoing ChangesEvery mistake in Git has an undo. Inspect the HEAD commit, discard and unstage changes, move back to an earlier commit, reverse or amend commits, and set work aside with stash.6 lessons
    1. 01HEAD and git show
    2. 02Discarding and Unstaging Changes
    3. 03Going Back with git reset
    4. 04Reversing Commits with revert, Fixing Them with amend
    5. 05Setting Work Aside with git stash
    6. 06Review: Picking the Right Undo
  3. 03Branching and MergingWork on several versions of a project at once. Create and switch branches, merge them back, resolve merge conflicts calmly and clean up branches you no longer need.6 lessons
    1. 01What a Branch Is
    2. 02Creating and Switching Branches
    3. 03Merging Branches
    4. 04Resolving Merge Conflicts
    5. 05Cleaning Up Branches
    6. 06Review: A Branch from Start to Finish
  4. 04Working with RemotesShare a repository with teammates. Clone a remote, keep up with fetch, merge and pull, publish your work with push, and follow a team workflow that avoids collisions.4 lessons
    1. 01Remotes and git clone
    2. 02Staying Up to Date with fetch, merge and pull
    3. 03Sharing Your Work with git push
    4. 04A Team Workflow
  5. 05GitHub, Markdown and the GitHub FlowPut a repository on GitHub, connect to it securely, and follow the GitHub flow of branches, pull requests and reviews. Then write good Markdown and READMEs and publish a site with GitHub Pages.6 lessons
    1. 01What GitHub Adds to Git
    2. 02Connecting a Repository to GitHub
    3. 03The GitHub Flow
    4. 04Pull Requests and Code Review
    5. 05Markdown and Great READMEs
    6. 06Publishing a Site with GitHub Pages
  6. 06Collaborating on Shared RepositoriesKeep junk and secrets out of a repository with .gitignore, contribute to projects you don't own through forks, organize work with issues and projects, and tidy a branch's history with rebase.4 lessons
    1. 01Keeping Files Out with .gitignore
    2. 02Contributing with Forks
    3. 03Planning Work with Issues and Projects
    4. 04Tidying History with git rebase
  7. 07GitHub Tools: CLI, Actions, Codespaces, Security and CopilotTour the tools that make GitHub more than a code host. Drive it from the terminal with gh, automate checks with Actions, code in the cloud with Codespaces, protect your account, and work alongside Copilot. Finish with a course review.6 lessons
    1. 01GitHub from the Terminal with gh
    2. 02Automating Work with GitHub Actions
    3. 03Coding in the Browser with Codespaces and github.dev
    4. 04Keeping Your Account and Code Safe
    5. 05Working with GitHub Copilot
    6. 06Course Review: Git and GitHub Together