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
From the course: Programming Foundations: Version Control with Git (2020)
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
-
-
-
-
(Locked)
Using the command line1m 17s
-
(Locked)
Command line basics4m 15s
-
(Locked)
Configure Git settings3m 11s
-
(Locked)
Setting up a local repository3m 1s
-
(Locked)
Setting up a remote repository3m 43s
-
(Locked)
Adding changes with Git add and commit4m 50s
-
(Locked)
Keep repositories up to date with Git pull and push3m 34s
-
(Locked)
Deleting a repository or branch29s
-
(Locked)
Challenge: Putting it all together1m 31s
-
(Locked)
Solution: Putting it all together5m 39s
-
(Locked)
-
-