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.
Authentication:
Use Git Credential Manager or SSH authentication
where appropriate. Follow GitHub's official instructions
and never commit passwords, tokens, or private keys.