Courses / Git and GitHub Basics
Git and GitHub Basics
Save every version of your work, undo mistakes, work on branches and share code on GitHub.
Progress
Loading…
Not sure yet? Get the free starter lesson first.
Enter your email and we will send it to you.
$15 $20
R255 (about $15)
What you will be able to do
- Create a repository and save snapshots with commits
- Read history and undo mistakes safely
- Work on a branch and merge it
- Publish a project to GitHub
- Open a pull request and know how to contribute to open source
What you need: A computer with Git installed (git-scm.com), a free GitHub account and any text editor. A terminal is used; every command is explained.
Lessons
- 1What Git is and your first commit40 minutes · Lesson quiz
- Why version control
- The three places
- Your first commands
- Worked example: first snapshot
- Try it: three commits
- 2History, changes and undoing40 minutes · Lesson quiz
- Seeing what changed
- Undoing safely
- Files Git should ignore
- Worked example: undo a mistake
- Try it: break and fix
- 3Branches and merging45 minutes · Lesson quiz
- Branches are parallel lines of work
- Merging
- Merge conflicts
- Worked example: feature branch
- Try it: create a conflict
- 4GitHub and pull requests50 minutes · Lesson quiz
- Putting your repo on GitHub
- Pull requests
- Contributing to open source
- Worked example: first push
- Project: publish and change
Final project: a repository you could show an employer
Publish a small project with a README, at least five clear commits, one merged pull request and a .gitignore.
Self-check: no secrets in history, messages describe what changed, and a stranger could understand the project from the README.
Next steps
- Take the Beginner Web Development course to build a site you can publish.
- Browse good first issues listed by awesome-for-beginners.