Module 02 of 12

Terminal & Git Setup

Lessons

About This Module

Git was built for the command line, and that is still where it's most powerful and easiest to understand. Graphical tools and editor integrations are useful, but they all run the same commands underneath. When something goes wrong, the terminal is where you'll fix it. This module makes you comfortable in the terminal and gets Git installed and configured properly before you start tracking real projects.

You'll start with what a shell actually is and the handful of commands you'll use constantly: pwd, ls, cd, mkdir, touch, cp, mv, and rm. On Windows, Git Bash gives you the same environment. Then you'll install Git, check it with git --version, and set your identity with git config --global user.name and user.email. Every commit you make is stamped with these. You'll also set your default editor and default branch name, and finally turn an ordinary folder into a repository with git init.

Watch the lessons in order, then continue on to The Core Git Workflow.

Lessons

4 videos
01

Bash in 100 Seconds

Fireship's rapid intro to Bash, the default shell on most Unix-like systems (and the one Git Bash gives you on Windows). It explains what a shell is and why developers live in it.

02

Command Line Crash Course for Beginners

Brad Traversy explains the difference between the command line, terminal, and shell, then works through navigation, creating, moving and deleting files, piping, and the everyday commands you'll use alongside Git.

03

Git Tutorial for Beginners: Command-Line Fundamentals

Corey Schafer shows how to check your Git version, set global configuration variables, get help for any command, and start a repository from a local code base with git init.

04

Git & GitHub Crash Course For Beginners

Traversy Media walks through installing Git (including the options in the Windows installer), configuring it, and creating a first repository. It also gives you a preview of the workflow you'll learn in the next modules.