# git clone — Git Fundamentals: Commits, Branches and Collaboration

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

> Copy an existing repository with git clone, including every commit, branch and tag.

## 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`.
