From the course: Programming Foundations: Version Control with Git (2020)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Command line basics

Command line basics

From the course: Programming Foundations: Version Control with Git (2020)

Start my 1-month free trial

Command line basics

- Before we get into Git specific commands, let's get familiar with the command line in general. I'll be using Terminal on a Mac. If you're using PowerShell on a PC, some commands are different, but the ones we'll be using in this course should be the same. When we first open the command line, the first thing we'll see is the Prompt. This is where we enter and execute commands. The way the information in your Prompt may be displayed different from mine, but the information itself is the same. In my command line prompt, I can see my computer name, the home directory represented by the tilde, and username. If you're not seeing your current directory, we can run our first command pwd, (keys clacking) Enter or Return to execute the command. This stands for print working directory, and we'll output the full file path of our current working directory, which is users and my username. What we see in the command line is…

Contents