How to clone git repository from one machine to another in Ubuntu

| | 1 min read

At times we would want to clone a local git repository from one computer to another. Suppose, a developer uses git for his local project in Ubuntu. He would like to share his project with another developer who is working on another machine. Then how could he do that? Here is what they can use git clone with IP address.

The steps to clone git for two developers are the following:

 $ git clone [email protected]:/home/myuser/projects/myproject
$ cd myproject

Things to note:

You'll need to know the password for the user -'user-name'

Hope this helps!