Free course
Git Course
Learn version control from the command line: repositories, commits, branches, merges, remotes, GitHub, and safe ways to recover from mistakes.
Prerequisites: Shell Commands
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Track a project with Git, develop work on a branch, share it through GitHub, and undo common mistakes without losing work.
Course contents
Git fundamentals
Version control, repositories, snapshots, and configuration.
Your daily Git workflow
Status, staging, commits, diffs, history, and ignored files.
Branches and merges
Create branches, combine work, and resolve conflicts.
Undoing and recovery
Unstage, restore, amend, revert, and recover safely.
- ✓ Unstage a file
- ✓ Discard working changes carefully
- ✓ Git, what if you forgot to add a file to a commit?
- ✓ Amend the last local commit
- ✓ Revert a shared commit
- ✓ Understand reset before using it
- ✓ git reflog: how to recover lost commits
- ✓ I posted my password / API key on GitHub
- ✓ Check your understanding: undoing things
Remotes and GitHub
Clone, fetch, pull, push, forks, and pull requests.