DEV Community

Cover image for Clone your first Git repository
NoviceDev
NoviceDev

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

2 3

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay