From the course: Git Essential Training (2023)
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Clone the remote repository
From the course: Git Essential Training (2023)
Clone the remote repository
- [Instructor] So we have set up that remote repository. Now let's see if we can link it to our local computer so we can work on it. To do that, we click Code right here. When we click that we get a URL that we can use to clone this repository, which means that we make a local copy. I'll copy the URL and then I'll open a terminal. You can open any terminal you want. I have PowerShell here, but you could use CMD as well, or the Terminal if you're on Mac or Linux. I have created an overall folder where I want to keep all my Git repositories. In this case, I called it Code. What I'll do is type git, then clone, (keyboard clicks) and then I'll paste the URL that we just copied. I'll press enter. And it's now creating a new folder for this Git repository. I can open it up if I want to. I'll do that in Visual Studio Code by using code (keyboard clicks) and then the name of the folder, git-repo. Press Enter. I say I'll…
Contents
-
-
-
-
-
-
Set up a remote repository2m 30s
-
(Locked)
Clone the remote repository1m 21s
-
(Locked)
Create a file and stage it1m 27s
-
(Locked)
Commit a file1m 8s
-
(Locked)
Push the file to the remote repository57s
-
(Locked)
The .git folder1m 37s
-
(Locked)
Initialize a repository locally and sync it to the remote repository2m 33s
-
(Locked)
Challenge: Push your first code41s
-
(Locked)
Solution: Push your first code40s
-
-
-
-