Cesare's Blog

Cesare's Blog

Cloning a repository between local computers

Cloning a repository between local computers

How to clone a repository between two machines on the same network

I had to copy a project repository from my desktop to another machine on the same network. I used git clone and ssh with the following command:

$ git clone ssh://cesare@mini.local/~/Sites/project-folder
Cloning into 'project-folder'...
Password: <enter remote user password>

remote: Counting objects: 14078, done.
remote: Compressing objects: 100% (7648/7648), done.
remote: Total 14078 (delta 10313), reused 8638 (delta 6220)
Receiving objects: 100% (14078/14078), 20.58 MiB | 2.04 MiB/s, done.
Resolving deltas: 100% (10313/10313), done.

Photo by Annie Spratt on Unsplash

 
Share this