In this project, we are going to learn how to join an existing project with Github through Forking and cloning a remote repository.
Forking is nothing but creating a copy of a repository, it allows you to make changes or experiment with the changes without affecting the original project.
Forking helps us to use the others project as a starting point of your own projects. Forking acts as a short bridge between the original repository and your personal copy.
Cloning is the process of creating a local repository by using the command line. cloning a repository means downloading a copy of source code from source control, where Git is a source control here.
pwdand check your home directory so here am doing everything in projects folder, this is a location where am going to clone the repository and then give the command as
git clone <URL>
cd starter-web-1/, once we are in this folder give
lscommand to see all the folders from the repository.
ls -al, where it will display all the files and folders including files as well and you can see
.gitfolder was created by default through cloning.
cd .git/command and do
lsyou will see all the folders that actually create the repository.
git status, this will explain to you everything that, it's on the master branch and the working directory is clean because we don't have any files in the working directory.