Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Git and GitHub

Version control is the core skill for contributing to open source. Start with the official book, then practise in a sandbox before touching a real repository.

Learn Git

ResourceFormatDescriptionSource / access
Pro Git, 2nd editionBookThe definitive free book. Chapters 1–3 cover repositories, commits and branching.Scott Chacon and Ben Straub — free online, CC BY-NC-SA 3.0
Git reference manualDocsOfficial command reference when you need exact flags and behaviour.Git project — free
Learn Git BranchingCourseInteractive visual exercises for branching, merging and rebasing.Free, browser-based
Oh My Git!GameAn open-source game that teaches Git concepts through play.Free and open source
GitHub Git cheat sheetPDFOne-page reminder of everyday commands.GitHub Education — free

Learn GitHub

ResourceFormatDescriptionSource / access
GitHub DocsDocsOfficial documentation for repositories, issues, pull requests and Pages.GitHub — free
Git and GitHub learning resourcesDocsGitHub’s curated entry point for beginners.GitHub — free
GitHub SkillsCourseShort, hands-on courses that run inside a real repository.GitHub — free
About pull requestsDocsWhat a pull request is and how review works.GitHub — free

Practice in this library

The Let’s Git It workshop includes a browser-only contribution path and exercises that use this repository as the practice ground.

Know a better Git resource? Official, free and currently maintained only.

Suggest a resource →