Command

Git Clone Repository Command

The Git command to clone repository is git clone <url>.

Quick Answer

Command
git clone <url>
GitCommand

Clone Repository

Type this command
git clone <url>

Copies a remote repository to your computer.

Learn More

How to clone repository in Git

  1. Open the terminal or command interface for Git.
  2. Type git clone <url>, replace any placeholders, and run it.

Git Clone Repository Command

Run git clone <url>.

Related Commands

Frequently asked questions

What is the Git command to clone repository?

Run git clone <url>.

Where do I type this Git command?

Type it in the terminal or command-line interface used by Git.

Does this Git command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify