Git & the Command Line
Use the terminal with confidence, track your work with Git, and collaborate on GitHub with pull requests.
Leads to: Data Scientist, Machine Learning Engineer, Software Developer, UI Developer, Cybersecurity Engineer, Database Administrator, Cloud Engineer, Mobile Developer, Web / Full-Stack Developer, Back-End Developer, DevOps / Site Reliability Engineer, QA / Test Engineer, Data Engineer, IT Support Specialist, Video Game Designer, Computer Science Teacher
Before you start
This course builds on Digital Literacy for Tech & STEM Work. Take it first if you are new to the topic.
About this course
Developers, data scientists, security and cloud engineers, and computer science teachers all work in a terminal and keep their work in Git. This beginner course starts from opening a terminal on macOS, Linux or Windows (Git Bash or WSL), then moves through navigating folders, creating and moving files safely, and chaining commands with pipes, grep and redirection. The Git module explains what version control is for, then has you create a repository, make meaningful commits, branch, merge and resolve a conflict. The final module puts your work on GitHub: remotes, push and pull, pull requests and code review, and a README and .gitignore that make a project easy to use. Every hands-on task happens in a practice folder, so nothing outside it can be harmed.
Course content
Module 1
The Command Line
3 lessons · 1h 55mOpen a terminal on any system, navigate folders, manage files safely, and chain commands with pipes and grep.
- 38mOpening a terminalReading
Open a terminal on macOS, Linux or Windows and move around your folders with pwd, ls and cd.
- 33mCreating and moving filesReading
Create, view, copy, move, rename and delete files and folders from the terminal without losing anything by accident.
- 44mPipes, grep, and redirectionReading
Search text with grep, save output to files with redirection, and chain small commands into useful pipelines.
Module 2
Git Basics
3 lessons · 1h 50mWhat version control is for, your first repository and commits, and branching, merging and conflicts.
- 17mWhy version controlReading
Understand what version control solves and what commits, history, diffs, repositories and branches are.
- 44mYour first repositoryReading
Install and configure Git, create a repository, and make three small, meaningful commits.
- 49mBranches and mergingReading
Create a branch, merge it back into main, and resolve a simple merge conflict calmly.
Module 3
Collaborating on GitHub
3 lessons · 2h 12mRemotes, push and pull, pull requests and code review, and READMEs and .gitignore files.
- 49mRemotes, push, and pullReading
Connect a local repository to GitHub, push your commits, and pull changes made elsewhere.
- 44mPull requests and code reviewReading
Open a pull request from a branch, review changes line by line, and respond to review comments with new commits.
- 39mREADMEs and project hygieneReading
Write a README that tells people what your project is and how to use it, and a .gitignore that keeps junk and secrets out of Git.
Where this course leads
Next course on the path
Careers that use it
- Data Scientist
- Machine Learning Engineer
- Software Developer
- UI Developer
- Cybersecurity Engineer
- Database Administrator
- Cloud Engineer
- Mobile Developer
- Web / Full-Stack Developer
- Back-End Developer
- DevOps / Site Reliability Engineer
- QA / Test Engineer
- Data Engineer
- IT Support Specialist
- Video Game Designer
- Computer Science Teacher