DEVELOPER DOCUMENTATION

Git & GitHub Tutorials

A practical guide to version control, repository management, collaboration, and publishing your projects with GitHub.

10 min read Beginner friendly 6 lessons
LEARN BY BUILDING

Version Control + Collaboration

Track changes, maintain project history, and share your work through a reliable development workflow.

STRUCTURED LEARNING

The Learning Path

Follow the lessons in order or jump directly to the topic you need.

6 topics
01

START HERE

Welcome

Welcome to this practical Git and GitHub guide. You will learn how to track changes, organise your work, and publish projects using commands commonly used in software development and data analytics.

Before you begin: Install Git and open a terminal such as Command Prompt, PowerShell, Git Bash, or your editor's integrated terminal.

02

CORE CONCEPTS

Git and GitHub

What is Git?

Git is a distributed version control system that runs locally. It tracks file changes and records snapshots called commits.

Local version control

What is GitHub?

GitHub hosts Git repositories online and provides tools for collaboration, code review, and showcasing projects.

Remote collaboration

Why use Git?

Git maintains a history of your project. You can review earlier changes, create separate branches for new work, and combine changes when they are ready.

Key concept: Git manages your project's history. GitHub can host the repository so that you can access and share it online.

03

FOUNDATIONS

Version Control System

A version control system records changes to files over time. It helps teams understand what changed, compare versions, restore previous work, and coordinate development.

Concept Purpose
Repository Stores project files and their version history.
Commit Records a snapshot of staged changes.
Branch Supports an independent line of development.
Remote References a repository hosted elsewhere, such as GitHub.

Other version control systems include Subversion (SVN), CVS, and Perforce. Git is widely used because of its distributed workflow and flexible branching model.

04

ENVIRONMENT SETUP

Set Up Git and GitHub

1

Install Git

Download Git for your operating system and complete the installation.

Download Git
2

Create a GitHub account

Create an account to host repositories and share your portfolio projects.

Visit GitHub
3

Configure your identity

Configure the name and email Git will record in your commits. Use an email address you are comfortable associating with your development work.

TERMINAL Git configuration
git config --global user.name "Your Name"
git config --global user.email "your-email@example.com"

Authentication: Use Git Credential Manager or SSH authentication where appropriate. Follow GitHub's official instructions and never commit passwords, tokens, or private keys.

Read GitHub authentication documentation

05

REFERENCE

Important Git Terminology

Repository
A project whose files and change history are tracked by Git.
Commit
A recorded snapshot of staged changes.
Branch
An independent line of development.
Merge
Combining changes from different branches.
Clone
Creating a local copy of a remote repository and its history.
Push
Sending local commits to a remote repository.
Pull
Fetching remote changes and integrating them into your branch.
Stash
Temporarily saving changes that have not been committed.

Save your current changes

Use stash when you need to temporarily put aside tracked working-tree changes.

TERMINAL Save changes
git stash

Restore your changes

The pop command reapplies the latest stash and attempts to remove it from the stash list.

TERMINAL Restore changes
git stash pop
06

PRACTICAL WORKFLOW

Getting Started with Git Commands

Start with these commands to verify your installation, configure Git, and inspect a repository.

01

Check your Git version

Verify that Git is installed and available.

git --version
02

Configure your username

Set the author name recorded in your commits.

git config --global user.name "Your Name"
03

Configure your email

Set the email recorded in your commits.

git config --global user.email "your-email@example.com"
04

Review your configuration

Display the Git configuration visible to your current setup.

git config --list
05

Check repository status

Inspect the current branch and working-tree changes.

git status

YOUR NEXT STEP

Publish your first portfolio project

Create a repository, stage your project files, commit your changes, and push the repository to GitHub.

Explore GitHub guides

You've reached the end of this guide.

Keep learning, keep building, and turn your knowledge into real projects.

Back to top