Programming and data

Learn Git and version control: what to know and where to start

Git is a version control system that records changes to files so people can work together and go back to earlier versions. Developers, data scientists and technical writers use it daily.

Outcomes

What you will be able to do with Git and version control

  • Create a repository and commit changes
  • Read history and differences
  • Branch, merge and resolve conflicts
  • Work with pull requests on a shared remote
  • Recover from mistakes

Learning path

How to learn Git and version control, in order

  1. Beginner

    Save and review changes

    Learn to create a repository, stage and commit, and read the history and differences. You are ready when you can undo a mistake without losing work.

  2. Intermediate

    Branch and collaborate

    Practise branching, merging, pull requests and resolving conflicts with a remote such as GitHub. You are ready when you can contribute to a shared project without breaking it.

  3. Advanced

    Keep history clean and fix problems

    Learn rebase, cherry-pick, reflog and release tagging, plus team workflows. You are ready when you can recover from a bad merge and keep a readable history.

Best-of lists

Ranked lists with Git and version control courses

Our category rankings that include a course teaching Git and version control.

Keep going

Where to go next

The first is the natural next step from this page. The rest follow what you have been reading.