Git Clone
git clone makes a full copy of a remote repository on your computer: every file, every commit and every branch.
The new folder is a normal Git repository, with a remote called origin that points back to where you cloned from.
Clone a repository
git clone https://github.com/w3schools-test/hello-world.git
Cloning into 'hello-world'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (4/4), done.
Clone into a folder with another name
Add a folder name after the URL:
git clone https://github.com/w3schools-test/hello-world.git myfolder
Cloning into 'myfolder'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (4/4), done.