alguna idea de por qué esto no funciona:
D:\apache-tomcat-8.0.33\bin>"C:\Program Files\Git\bin\git.exe" -c core.askpass=true ls-remote -h https://tobias@wdmycloud/shares/githome/Repo.git HEAD fatal: repository 'https://tobias@wdmycloud/shares/githome/Repo.git/' not found
Puedo clonar con éxito este repository usando eclipse:
En Eclipse, está utilizando SSH, y en la command-line está usando HTTPS. Esos son dos protocolos diferentes, y el hecho de que uno funcione no necesariamente significa que el otro funcionará también. Pruebe la URL SSH en su lugar:
"C:\Program Files\Git\bin\git.exe" -c core.askpass=true ls-remote -h ssh://tobias@wdmycloud/shares/githome/Repo.git HEAD
Con respecto a WD MyCloud, encontrará un tutorial para acceder a un git repo a través de ssh , que es bastante fácil de configurar, considerando que todo lo que necesita es ejecutar sshd.
Pero para que una url https funcione, necesitaría un server Apache en ejecución, configurado correctamente para admitir git http-backend
.
Algo a lo largo de la línea de an httpd.conf
incluye:
# Configure Git HTTP Backend SetEnv GIT_PROJECT_ROOT /www/example.com/git SetEnv GIT_HTTP_EXPORT_ALL # Note: Serve static files directly AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/www/git/$1 AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/www/git/$1 # Note: Serve repository objects with Git HTTP backend ScriptAliasMatch \ "(?x)^/(.*/(HEAD | \ info/refs | \ objects/info/[^/]+ | \ git-(upload|receive)-pack))$" \ /usr/libexec/git-core/git-http-backend/$1
Y eso no es estándar, a less que usted mismo lo configure de antemano.