DEV Community

Cover image for Git Basic Techniques(Cloning).
keji
keji

Posted on

Git Basic Techniques(Cloning).

GIT CLONING

As a starter, using git techniques can be overwhelming and in this post, I'll talk about one of the basic git techniques which are Git Clone. Join me as I explain what git clone is.
What is Git Clone?
the clone command downloads an existing Git repository/project to your local computer. This enables us to work on our copy of the project/repository without any reference from other changes.
git-clone.gif
To clone a repository, run the git-clone command, followed by the path to the repository.

git clone/path/to/repo
Enter fullscreen mode Exit fullscreen mode

if outsource doesn't reside in the same system, you can SSH to a remote system and clone too

git clone username@remote_system
Enter fullscreen mode Exit fullscreen mode

here is also a graphical example of cloning with SSH.

clone2.png

if you're cloning from a source on the internet, you can simply add the URL

git clone  https://github.com/username.git/the project
Enter fullscreen mode Exit fullscreen mode

DownloadZip2.jpg

in this post, I've talked about GIT CLONE and the ways on how to clone repository or project right into your
local computer.

Further reading

you can visit GIT to learn more about Git basic techniques.

Top comments (0)