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 - Git Tutorial
From the course: Programming Foundations: Version Control with Git
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Using command line1m 17s
-
(Locked)
Command-line basics6m 3s
-
(Locked)
Configuring Git settings2m 46s
-
(Locked)
HTTPS vs. SSH4m 16s
-
(Locked)
Setting up a local repository4m 18s
-
(Locked)
Managing version history with Git add and commit2m 36s
-
(Locked)
Exercise: Creating project files4m 56s
-
(Locked)
Exercise: Git add and Git commit3m 47s
-
(Locked)
Creating a remote repository2m 13s
-
(Locked)
Syncing with git push and pull5m 50s
-
(Locked)
Deleting a repository3m 7s
-
(Locked)
Cloning a remote repo4m 26s
-
(Locked)
Challenge: Putting it all together1m 43s
-
(Locked)
Solution: Putting it all together6m 19s
-
(Locked)
-
-