3

ssh: Could not resolve hostname C: hostname nor servname provided, or not known fatal: The remote end hung up unexpectedly ?

ive set up a git repo useing --bare ( i even dont know what it mean ) im following the Using Git and Dropbox together effectively? and when i do

$ git clone C:\Users\DAMS\Documents\My Dropbox\Projects\RED.git

or

$ git clone C:/Users/DAMS/Documents/My Dropbox/Projects/RED.git

even this ( diffrent error )

$ git clone /C/Users/DAMS/Documents/My Dropbox/Projects/RED.git
fatal: Could not switch to '/C/Users/DAMS/Documents': No such file or directory

it somehow give me a error. ( btw im useing cygwin on windows )

Thanks

Adam Ramadhan

Community
  • 1
  • 1
Adam Ramadhan
  • 22,712
  • 28
  • 84
  • 124

2 Answers2

3

try:

$ git clone "/cygdrive/c/Users/DAMS/Documents/My Dropbox/Projects/RED.git"

You're not escaping the space in "My Dropbox", which splits the content into multiple argunemts to git. using the c: specification causes it to use ssh to access a host called 'c'

Anya Shenanigans
  • 91,618
  • 3
  • 107
  • 122
1

the colon is used to separate hostname from the path.

i believe in cygwin you can say: /c/users/DAMS/…

 $ git clone '/c/Users/DAMS/Documents/My Dropbox/Projects/RED.git'
knittl
  • 246,190
  • 53
  • 318
  • 364