VIDEO SCRIPT: Today I’m gonna show you how to CLONE projects using GitHub with vs code without using the terminal.
In the last video, I showed you how to push a project from vs code to GitHub. In this video, we are going to focus on how to add an existing GitHub project to vs code and your local system and how to update the files afterward with just a couple of mouse clicks. This process is also called cloning a repository.
You can either clone your own projects or any project you find on GitHub. There are some little differences and we will go through them in this video.
First of all, you have to install git on your system, git is the underlining technology which powers GitHub.
Secondly, make sure to have an account on Github and that you have vs code installed. Just a quick check, in the beginning, make sure that under settings git enable is checked.
So let's start with the first step. Go to the repository you want to clone. First, we will clone our own repository, you would do this for example if you lost access to a project folder on your local system.
Go to the source control menu and click clone repository here or you can go to → view and command palette and choose git clone.
Then take the URL or of your project or the respective git URL, it does not matter,, and put it in the field.
Create a new folder and click enter. Now you have the repository on your local system. If you now want to update files it will automatically work.
Now let’s clone a repository from somebody else and make it our own. Here is one of my favorite online teachers Brad Traversy and let’s clone the expense tracker repository.
Now I did the same process as before and have the project on my local system, but if I want to push it to GitHub as we learned in the first video, it won’t work.
So what we have to do is close the repository and delete the hidden GitHub file in the folder. If you can't’ see the file, in windows, go to view… and in mac press command shift dot and the folder should appear.
If we now want to push changes to GitHub we can use the process I explained in the first video.
And now we made that project our own.
In the next video which is in the description down below, I’m going to show you how to delete a project in Github and your local system.
ABOUT THIS CHANNEL: Dev World is a mix of tutorials and educational videos around Coding, Online Marketing, and Design.