Free video course · Beginner
Git & GitHub from Zero
A free beginner video course on Git and GitHub. Each short video teaches four or five commands with a real-life analogy, a terminal demo and written notes, from your first commit to working with others on GitHub.
What you will learn
- Save, review and undo changes with Git
- Work on branches without breaking your main code
- Push and pull code between your computer and GitHub
- Collaborate with pull requests and resolve merge conflicts
- Recover from mistakes with stash, reflog and reset
- Set up good habits: .gitignore, SSH keys and a clear README
Lessons
Lesson 1
Git basics: git init, status, add, commit and log
Learn the five Git commands you will use every day, with a video-game save point analogy and a packing-a-box picture of the three areas of Git.
git initgit statusgit add <file>git commit -m "message"git log --onelineLesson 2
See and undo changes: git diff, restore, amend and revert
See exactly what changed with git diff, then undo mistakes safely with restore, amend and revert. Includes a quick guide to which one to use.
git diffgit restore <file>git restore --staged <file>git commit --amendgit revert <commit>Lesson 3
Branches: git branch, switch, merge and delete
Work on a copy of your project without touching the original. Create, switch, merge and delete branches, with an essay-draft analogy.
git branchgit switch -c <name>git merge <branch>git branch -d <name>Lesson 4
GitHub and remotes: clone, remote, push, fetch and pull
Connect your project to GitHub and move commits between your computer and GitHub with git remote add, push, clone, fetch and pull.
git remote add origin <url>git push -u origin maingit clone <url>git fetchgit pullLesson 5
Teamwork on GitHub: pull requests and merge conflicts
Publish a branch, open a pull request, catch up with your team using git pull --rebase, and resolve a merge conflict step by step.
git push -u origin <branch>Pull requestgit pull --rebaseResolve a merge conflictgit log --graph --onelineLesson 6
Rescue tools: stash, cherry-pick, reflog, reset and rebase
Park unfinished work with stash, copy one commit with cherry-pick, find lost commits with reflog, move a branch back with reset, and tidy history with rebase.
git stashgit cherry-pick <commit>git refloggit reset --soft | --mixed | --hardgit rebase <branch>Lesson 7
Good habits on GitHub: .gitignore, tags, SSH keys and README
Keep secrets and clutter out of Git with .gitignore, stop tracking committed files, tag releases, sign in with SSH keys and write a README.
.gitignoregit rm --cached <file>git tag -a v1.0.0 -m "message"ssh-keygen -t ed25519README.md
Questions about this course
Who is this Git course for?
Complete beginners. You do not need any experience with Git or the terminal. Every video explains the idea with a real-life analogy before it shows the commands.
What do I need to follow along?
A computer, a terminal, and Git, which is free to install from git-scm.com. From the GitHub episodes onward you also need a free GitHub account.
Is the course free?
Yes. The videos are on the ChangeCV YouTube channel and the written notes for each lesson are on this site, both free.
Why learn Git for a job search?
Git and GitHub are standard tools for software and data roles, and many employers look at your GitHub profile. Once you have the skills, add them to your Master Profile in ChangeCV so they can go on the CVs you tailor for each role.