Git and GitHub, from your first commit to your first open-source pull request
CodeWithPurpose lessons that teach the tool and the platform as one subject. Twenty-one chapters: commits, branches, conflicts, rebasing, pull requests, code review, Actions, and contributing to somebody else's project.

1. What Git Actually Is
3 chaptersWhy the tool exists, how to install it without inheriting somebody else's config, and the three places a file can be at the same time.
2. The Everyday Loop
4 chaptersStage, commit, read the history back, undo the thing you regret, and keep the files that should never have been in there out.
3. Branches
4 chaptersA branch is smaller than you think and merging is stranger. Conflicts, rebases, and the one rule about rewriting history.
4. GitHub, the Platform
4 chaptersPushing to a second copy of your repository, proving you are allowed to, and everything a repository page holds besides the code.
5. Pull Requests and Review
3 chaptersThe unit of work on GitHub, the review that gates it, and the three different things the green merge button can do.
6. Working in the Open
3 chaptersContributing to a project you do not own, letting a robot check the boring parts, and agreeing with your team on how any of it happens.
Open source
Your chapter goes here
Every chapter here was written by a student. Propose your own topic, or fix one that confused you. Drafts stay invisible until they are ready, so nothing you start can break the site.
Every project you build from here lives in a repository
These lessons are part of CodeWithPurpose's free learning library, built by students, for students, everywhere.