Programming
Python Programming for Beginners
Write your first programs and think like a programmer
Track your code, work with others and publish your projects
4 sections · 13 lessons · 7h 30m
You have probably seen folders like this:
project_final.html
project_final2.html
project_final_REAL.html
project_final_REAL_use_this.html
Nobody remembers what changed between these copies, which one is newest, or how to combine a friend's edits with yours. If your laptop crashes, all of them may be lost.
Git solves this. It is a free, open-source version control system that records snapshots of your project over time. This Git and GitHub for beginners course teaches you to use it from the very first command, and to share your work online with GitHub.
| Git | GitHub | |
|---|---|---|
| What it is | Software installed on your computer | A website and online service |
| Main job | Tracks changes in a project folder | Hosts Git projects online and adds collaboration tools |
| Works offline? | Yes, almost everything | No, needs internet |
| Cost | Free and open source | Free plan available; paid plans add features |
| Alternatives | (Git is the standard) | GitLab, Bitbucket, and others |
A simple comparison: Git is like the camera that takes photos of your project; GitHub is like an online album where you store and share those photos.
.git folder inside it.main.origin.Understanding this picture makes every later command easier.
git add to include in the next snapshot.git commit.A typical cycle is: edit files, git add the ones that are ready, then git commit with a message. You will do this many times a day.
Software developers use Git every day, but so do data analysts (for SQL and Python scripts), web designers, technical writers and students submitting projects. Many open-source projects, including tools you may already use, are developed in public on GitHub. A tidy GitHub profile with small, real projects is a practical way for freshers to show their skills, alongside a resume.
git add and git commit.Download Git only from the official website, git-scm.com, or your system's official package manager. Avoid "Git installer" downloads from other sites.
main.Open Terminal and type git --version. If Git is not installed, macOS offers to install the Command Line Developer Tools, which include Git. Alternatively, install it with Homebrew: brew install git.
Use your distribution's package manager. On Ubuntu or Debian:
sudo apt update
sudo apt install git
Open a terminal and type:
git --version
You should see something like git version 2.x.x. The exact number does not matter for this course. If you see "command not found" or "'git' is not recognized", close and reopen the terminal, or restart the computer, and try again.
Every commit records who made it. Tell Git your name and email once per computer:
git config --global user.name "Asha Verma"
git config --global user.email "asha@example.com"
Use your real name (or the name you want on your public work) and the email you will use for GitHub. --global means "for every repository on this computer".
Privacy tip: commits pushed to GitHub show this email publicly. GitHub offers a private noreply email address in its email settings that you can use instead. Look for the option to keep your email private in your GitHub account settings.
Older Git versions name the first branch master; GitHub and most new projects use main. Set main so your projects match GitHub:
git config --global init.defaultBranch main
Git sometimes opens an editor, for example to write a merge message. If you use VS Code:
git config --global core.editor "code --wait"
If you skip this, Git may open Vim. If you ever get stuck in Vim, press Esc, type :wq and press Enter to save and exit.
Windows and macOS/Linux end lines of text differently. Git for Windows handles this automatically with its recommended setting, so beginners rarely need to change anything. If teammates on different systems see every line marked as changed, search for "git core.autocrlf" in the official Git documentation.
git config --global --list
Example output:
user.name=Asha Verma
user.email=asha@example.com
init.defaultbranch=main
core.editor=code --wait
To change a setting, run the same git config command again with the new value.
Git is used from a terminal, so learn these few commands first:
| Task | Windows (Git Bash), macOS, Linux | Windows Command Prompt |
|---|---|---|
| Show current folder | pwd | cd |
| List files | ls | dir |
| Enter a folder | cd foldername | cd foldername |
| Go up one folder | cd .. | cd .. |
| Make a folder | mkdir myproject | mkdir myproject |
Tip: avoid spaces in folder names for your projects (my-website, not my website). It saves typing quotes in commands.
Every command has built-in help:
git help commit
git commit -h
The first opens the full manual; -h shows a short summary in the terminal.
git config --global user.name Asha Verma saves only "Asha". Use quotes.pwd before you start.user.name, user.email and init.defaultBranch main once per computer.pwd, ls, cd and mkdir to move around the terminal.git --version. Note the version number.main.git config --global --list and check all values are correct.my-website inside your Documents folder and move into it with cd. You will use it in the next lesson.Git is a version control system: it records every change you make to your files, so you can see what changed, go back to an earlier version and work on new ideas without breaking what already works. GitHub is a website where you store Git projects online, share them and collaborate with others.
Almost every software team uses Git, and many employers look at a candidate's GitHub profile. Even if you are a student building your first website, a Python learner or a teacher sharing notes, Git keeps your work safe and organised.
Every lesson uses the same small project: a personal web page. You will type real commands in the terminal, see what Git prints and fix the common mistakes beginners make. A free GitHub account and any Windows, macOS or Linux computer are enough; a low-cost laptop is fine.
By the end you will have a project on GitHub with a clean history, a branch merged through a pull request, a helpful README and a live website published free with GitHub Pages, which you can add to your resume.
Pass the final online exam (20 minutes, 15 questions, pass mark 40%) to receive your certificate instantly. Each certificate has a unique number and QR code for instant verification.
This is an independent, institute-issued skill-training certificate — not a government-recognised degree or diploma.
Muninder Singh
Leave your details and our team will get back to you, usually within one working day.
Programming
Write your first programs and think like a programmer
Programming
Build and publish your first responsive website
Programming
Learn the language behind operating systems, step by step
Free
Includes certificate