user1692333
user1692333

Reputation: 2597

Geting git repo from windows to mac

Trying simple clone:

192-168-0-100:shop nonamez$ git clone "[email protected]/var/www/html/s1"
fatal: repository '[email protected]/var/www/html/s1' does not exist
192-168-0-100:shop nonamez$ git clone "git://[email protected]/var/www/html/s1"
fatal: could not create work tree dir 's1'.: No such file or directory

Only works windows version

git.exe clone   --progress -v  "[email protected]:/var/www/html/s1" "C:\Users\Desktop\Projektai\s11"

But it creates filder with name C:\Users\Desktop\Projektai\s11

Upvotes: 1

Views: 185

Answers (1)

Haozhun
Haozhun

Reputation: 6511

Instead of [email protected]/var/www/html/s1, you probably want [email protected]:/var/www/html/s1 or ssh://[email protected]/var/www/html/s1.

These 2 representations I provided are equivalent. Note the colon in the first representation. The first is essentially a shorthand of the second. Both of these use ssh as the underlying protocol. git:// is a different one which uses a native protocol.

For more details on git url, type git help clone or visit here, and go to section "GIT URLS".

Upvotes: 2

Related Questions