2013-05-26 39 views
5

Câu hỏiLàm thế nào để sao chép một kho lưu trữ Subversion với "GitHub cho Windows"?

Tôi có GitHub for Windows cài đặt và đã tự hỏi liệu tôi có thể sao chép một kho lưu trữ Subversion với "Git Shell" mà đến cùng với "GitHub cho Windows".

Thử và sai

tôi thử như sau:

  1. Windows> Start> All Programs> GitHub, Inc> Git Shell
  2. Từ cửa sổ Git Shell PowerShell: git-svn clone -s http://example.com/my_subversion_repo .

Sau đó, tôi nhận được thông báo lỗi này:

The term 'git-svn' is not recognized as the name of a cmdlet, 
function, script file, or operable program. Check the spelling of the 
name, or if a path was included, verify that the path is correct and 
try again. At line:1 char:8 
+ git-svn <<<< clone -s http://example.com/my_subversion_repo . 
+ CategoryInfo   : ObjectNotFound: (git-svn:String) [], CommandNotFoundException 
+ FullyQualifiedErrorId : CommandNotFoundException 

Google

Vâng, tôi đã googled, nhưng không tìm thấy câu trả lời.

Trả lời

4

Như đã đề cập trong "What is the difference between Git Bash and the GitHub for Windows shell?", các GitHub Shell được dựa trên posh-git, mà hỗ trợ git-svn.

Tuy nhiên, release note này đề cập đến:

  • git-svn hoạt động: git svn <tab>

Điều đó có nghĩa, không có '-' giữa gitsvn.

Nếu sự cố vẫn tiếp diễn và kể từ GitHub for Windows cũng bao gồm phân phối msysgit, bạn có thể mở bash msysgit thay vào đó và thử git svn lệnh ở đó.

+0

Darn! Không có dấu nối. Cảm ơn bạn! – Lernkurve

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