DevOps track

Git & GitHub Tutorial

Learn Git and GitHub step by step: repositories, commits, branches, pull requests, collaboration, GitHub Pages and Actions.

BeginnerShows Git 2.47 and GitHub.com as of 2026. GitHub changes its layout from time to time; button names stay the same.
0/19 complete
Topics
19
Full lessons
19
Est. hours
~3
Interview Qs
0

Overview

Git saves every version of your project; GitHub keeps it online so you can back it up, share it and work with others. Every software job expects you to know both.

This track starts from zero and shows each step with pictures of GitHub and VS Code: create an account and a repository, commit and push, work on branches, open pull requests, fix conflicts, collaborate, publish a website with GitHub Pages and run your first GitHub Actions workflow.

What you will learn

  • Create repositories and write good commits
  • Work on branches and merge them with pull requests
  • Collaborate through forks, issues and protected branches
  • Publish a website with GitHub Pages and automate checks with Actions

Prerequisites

None — this track starts from the very beginning.

Learning path

The recommended sequence, from beginner to advanced. Each stage builds on the one before.

  1. 1Getting Started · 3 topics · Beginner
    Introduction to Git and GitHub · Installing Git · Creating a GitHub Account
  2. 2Your First Repository · 3 topics · Beginner
    Creating a Repository · Editing and Uploading Files · Writing a README
  3. 3Daily Workflow · 6 topics · Beginner → Intermediate
    Cloning a Repository · Commit, Push and Pull · Branches · Pull Requests · Merge Conflicts · .gitignore
  4. 4Collaboration · 4 topics · Intermediate → Advanced
    Forks and Open Source · Issues · Collaborators and Branch Protection · SSH Keys and Tokens
  5. 5Publish & Automate · 3 topics · Advanced
    GitHub Pages · GitHub Actions Basics · Your GitHub Profile

Complete topic list

19 topics
1

Getting Started

3 topics
  1. Introduction to Git and GitHubBeginner5m
  2. Installing GitBeginner5m
  3. Creating a GitHub AccountBeginner5m
2

Your First Repository

3 topics
  1. Creating a RepositoryBeginner5m
  2. Editing and Uploading FilesBeginner5m
  3. Writing a READMEBeginner5m
3

Daily Workflow

6 topics
  1. Cloning a RepositoryBeginner5m
  2. Commit, Push and PullBeginner5m
  3. BranchesBeginner5m
  4. Pull RequestsIntermediate5m
  5. Merge ConflictsIntermediate5m
  6. .gitignoreIntermediate5m
4

Collaboration

4 topics
  1. Forks and Open SourceIntermediate5m
  2. IssuesIntermediate5m
  3. Collaborators and Branch ProtectionIntermediate5m
  4. SSH Keys and TokensAdvanced5m
5

Publish & Automate

3 topics
  1. GitHub PagesAdvanced5m
  2. GitHub Actions BasicsAdvanced5m
  3. Your GitHub ProfileAdvanced5m

Code example

A taste of the track, from Introduction to Git and GitHub.

ShellThe everyday cycle in five commands Illustrative
git clone https://github.com/asha/hello-github.git   # copy a repository to your computer
cd hello-github


# ...edit index.html in VS Code...


git add index.html                  # 1. stage the change
git commit -m "Add a welcome line"  # 2. save a snapshot
git push                            # 3. upload it to GitHub
git pull                            # 4. download changes made by others
Expected output
[main 3f9c2a1] Add a welcome line
 1 file changed, 1 insertion(+)
To https://github.com/asha/hello-github.git
   8d41e07..3f9c2a1  main -> main
Already up to date.

Practice exercises

Show all 19 exercises

Frequently asked questions

Is GitHub free?
Yes. The free plan includes unlimited public and private repositories, GitHub Pages and a monthly allowance of GitHub Actions minutes.
Do I need the command line?
Not to start: the website and VS Code can do most things with buttons. The track shows both, because the same few commands appear in every job and tutorial.
What is the difference between Git and GitHub?
Git is the version control program on your computer. GitHub is a website that hosts Git repositories and adds collaboration features such as pull requests and issues.