2013-05-26 8 views
5

DomandaCome clonare un repository Subversion con "GitHub per Windows"?

ho GitHub for Windows installato e chiedevo se posso clonare un repository Subversion con il "Git Shell" che arriva con "GitHub for Windows".

Tentativi ed errori

ho provato la seguente:

  1. di Windows> Start> Tutti i programmi> GitHub, Inc> Git Shell
  2. Dalla finestra Git Shell PowerShell: git-svn clone -s http://example.com/my_subversion_repo .

Quindi, ho ricevuto questo messaggio di errore:

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

Sì, ho già googled, ma non ha trovato una risposta.

risposta

4

Come indicato in "What is the difference between Git Bash and the GitHub for Windows shell?", la Shell si basa su GitHub posh-git, che supporta git-svn.

Tuttavia, questo release note menzioni:

  • git-svn operazioni: git svn <tab>

Ciò significa, non '-' tra git e svn.

Se il problema persiste, e dal momento che GitHub for Windows comprende anche una distribuzione msysgit, si potrebbe aprire la bash msysgit invece, e tentare git svn comandi anche lì.

+0

Dannazione! Nessun trattino Grazie! – Lernkurve