From the course: Programming Foundations: Version Control with Git

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Command-line basics

Command-line basics

- [Instructor] Before we get into Git specific commands, let's get more familiar with using the command line interface. I'll be using terminal on a Mac for the remainder of the examples. We've already entered a couple of commands during the Git installation. The result of those commands is what we see here in my window. To clear the screen and start fresh, you could open a new tab or window or just restart the CLI. But we can also run the clear command in all lowercase letters. Press return or ENTER to execute the command. In terminal, if you want to see the history, you can just scroll up. You can also use the up and down arrow keys to cycle through the commands you've already used in the current session. The left and right arrow keys can also be used to move the cursor. To get back to a blank prompt, just press the down arrow key until you see it. The space where we enter the commands is called the prompt and after you execute a command, it returns to the prompt ready to receive…

Contents