Domanda

Question

I have GitHub for Windows installed and was wondering whether I can clone a Subversion repository with the "Git Shell" that comes along with "GitHub for Windows".

Trial and error

I tried the following:

  1. Windows > Start > All Programs > GitHub, Inc > Git Shell
  2. From the Git Shell PowerShell window: git-svn clone -s http://example.com/my_subversion_repo .

Then, I got the this error message:

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

Yes, I already googled, but didn't find an answer.

È stato utile?

Soluzione

As mentioned in "What is the difference between Git Bash and the GitHub for Windows shell?", the GitHub Shell is based on posh-git, which supports git-svn.

However, this release note mentions:

  • git-svn operations: git svn <tab>

That means, no '-' between git and svn.

If the issue persists, and since GitHub for Windows also includes a msysgit distribution, you could open the msysgit bash instead, and try git svn commands there too.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top