# git clone — Git

Source: https://www.geekswithgeeks.com/en/git/git-clone

> Copy an existing repository, history and all, onto your machine.

## Clone a remote repo

This downloads every commit, branch and tag — not just the current files.

```bash
git clone https://github.com/octocat/hello-world.git
cd hello-world
```

Output:

```
Cloning into 'hello-world'...
remote: Enumerating objects: 42, done.
```

## Custom folder name

Add a second argument to clone into a differently named folder: `git clone <url> my-folder`.
