Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I clone from a git repository from 1 machine to another?

Tags:

git

I have clone a git repository from the server on my laptop A running macosx. I have a laptop B running linux, how can I clone from the git repository on laptop A?

How can I get the url to clone from?

Thank you.

like image 301
michael Avatar asked Jan 23 '26 01:01

michael


1 Answers

Provided you have an SSH server on laptop 1, the remote would be:

user@host:/path/to/repository

ie, type:

git clone user@laptopA:/path/to/repository
like image 151
fge Avatar answered Jan 25 '26 02:01

fge