DEV Community

Cover image for Clone your first Git repository
NoviceDev
NoviceDev

Posted on • Updated on • Originally published at novicedev.com

Clone your first Git repository

Git clone command is used when you are trying to download a project from an existing remote repository. Once the git clone command is successfully executed you will have a copy of the repository in your machine.

The below command will clone the remote git repository and the name of the directory will be the same as the repository name.

Syntax:

$ git clone <repository>
Enter fullscreen mode Exit fullscreen mode

Example:

$ git clone https://github.com/username/myproject.git
Enter fullscreen mode Exit fullscreen mode

And now you can navigate in the cloned directory on you local.

Know more about git clone...

Top comments (0)