Git clone repository to your computer

Share this post to your friends !

SystemMen - Git clone repository to your computer. After you have created the repository, how do you work with it now?

This article, I will guide you to use Git to clone the repository to your computer.

You need to install Git on your computer to use it.

Get the clone URL of the repository

Now, please login to Gitlab, click to select your repository. For example, I select a repository named

Then, press the Clone button in the right corner of the screen. It will display 2 URLs for you to choose.

git-clone-repository-to-your-computer Git clone repository to your computer
Git clone a repository to your computer.
  1. Clone with SSH: you clone via SSH protocol.
  2. Clone with HTTPS: that you clone through HTTPS protocol.

Both options are good and you can use them freely. For me, I use HTTPS.

You click the copy button to the right of the URL.

Git clone repository to your computer

I am using Linux, so I just need to open up the terminal and start using.

If you are using Windows, open the Git Bash program.

You type the command below to clone the repository to your computer, please replace your corresponding URL.

git clone

It’s look like this.

danie@linuxmint ~/Desktop/down/gitlab $ git clone
Cloning into ''...
Username for '': Danny_Pham
Password for '': 
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.

Because I’m putting the repository in Private mode, when clone, it will ask me to enter the Gitlab account username and password.

Now, when I list the repository that I cloned to the computer, you will see the README file in it.

danie@linuxmint ~/Desktop/down/gitlab $ ls
danie@linuxmint ~/Desktop/down/gitlab $ cd
danie@linuxmint ~/Desktop/down/gitlab/ $ ls


This is the first step you use Git to work with your repository. Perform clone it to the computer. If you notice, the source clone directory under the computer and on Gitlab is exactly the same.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.

Share this post to your friends !
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.