Harriss Harriss - 4 months ago 18
Git Question

cloning files from server to a local folder - git

I am super new to github and I need to know, how to clone a repository which is on the server to a local folder (local computer).

Assuming, x is the folder (destination on local computer) and y is the repository.

I presume gitclone is the option, could someone briefly explain?

Thanks!

Answer

You simply have to copy the repository url,

go to the folder where you want to repository to be in and do a git clone.

#cd to the desired folder
cd folder

# grab the git repo to the desired folder inside this folder
git clone <url> <desired folder name>
Comments