Cloning is the process by which you copy an existing repository to your machine.
Cloning a repository
Locate/create the directory that you want the source to go. Then go to a DOS prompt (cmd.exe) and execute the following command:
c:\src\git> git clone your-repository.git
This will copy the source code from that git repository to c:\src\git\your-repository.
For example, let's say we want to clone the repository at: https://github.com/danvallejo/golang
You'll notice that in the middle right is a "HTTPS clone URL"
Copy the url by either clicking on the little clipboard icon or by selecting the URL text.
Then go to a DOS prompt and type:
C:\src\github>git clone https://github.com/danvallejo/golang.git Cloning into 'golang'... remote: Counting objects: 97, done. remote: Total 97 (delta 0), reused 0 (delta 0), pack-reused 97 Unpacking objects: 100% (97/97), done. Checking connectivity... done.
Now you will have a C:\src\github\golang folder with the repository.
|Copyright 1999-2021 by Cstructor LLC. All rights Reserved.|