2010-03-12 28 views
8

Tôi đang cố thiết lập máy chủ Git trên Windows 7, sử dụng CopSsh, PuTTY và msysgit. Tôi đang gặp vấn đề nhân bản một kho lưu trữ bằng cách sử dụng ssh.Git clone bằng ssh - không thể tìm thấy kho lưu trữ

Nếu tôi sử dụng một đường dẫn thư mục thường xuyên, nó hoạt động:

$ git clone ~/vc/git/depot/test.git/ /c/dev/es/app 
Initialized empty Git repository in c:/dev/es/app/.git/ 
warning: You appear to have cloned an empty repository. 

SSH, không hoạt động. Tôi đã thử một con đường khác nhau mà không thành công.

$ git clone ssh://[email protected]:4837/~/vc/git/depot/test.git/ /c/dev/es/app 
Initialized empty Git repository in c:/dev/es/app/.git/ 
fatal: '~/vc/git/depot/eastApp.git' does not appear to be a git repository 
fatal: The remote end hung up unexpectedly 

Tôi làm theo các hướng dẫn tại đây: http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/

Bất kỳ manh mối?

Trả lời

10

Tôi có con đường sai lầm ...

git clone "ssh://[email protected]:4837/Program Files (x86)/ICW/home/steve/vc/git/depo/test.git" 
/c/dev/es/app/ 

làm việc.

Các vấn đề liên quan