2013-05-26 11 views
5

PytanieJak sklonować repozytorium Subversion za pomocą "GitHub dla Windows"?

mam GitHub for Windows zainstalowane i zastanawiałem się, czy mogę sklonować repozytorium Subversion z "Git Shell", który przychodzi wraz z "GitHub for Windows".

prób i błędów

Próbowałem następujące:

  1. Windows> Start> Wszystkie programy> GitHub, Inc> Git Shell
  2. Z okna Git Shell PowerShell: git-svn clone -s http://example.com/my_subversion_repo .

Następnie otrzymałem komunikat o błędzie:

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

Tak, ja już google, ale nie znalazłem odpowiedzi.

Odpowiedz

4

Jak wspomniano w "What is the difference between Git Bash and the GitHub for Windows shell?", to GitHub Shell oparty jest na posh-git, która wspiera git-svn.

Jednak ta release note wspomina:

  • git-svn operacje: git svn <tab>

Oznacza to, że nie '-' między git i svn.

Jeśli problem będzie się powtarzał, a ponieważ GitHub for Windows zawiera również dystrybucję msysgit, możesz zamiast tego otworzyć bash MSysgit i wypróbować tam również polecenia git svn.

+0

Skarbie! Brak łącznika. Dziękuję Ci! – Lernkurve

Powiązane problemy