Learn Git & GitHub
Track your work with Git and share it on GitHub. Learn the everyday commit workflow, undo mistakes safely, branch and merge, collaborate through remotes and pull requests, and get to know GitHub's tools for teams.
- Beginner level
- 7 modules
- 39 lessons
- 155 quiz questions
Syllabus
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
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
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
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
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
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
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