Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clone a Subversion repository with "GitHub for Windows"?

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.

  • git-svn: Effectively Using Git With Subversion
  • GitHub for Windows help
  • "github windows" subversion checkout
  • how to clone a subversion repository with "github for windows"
like image 384
Lernkurve Avatar asked Oct 04 '22 01:10

Lernkurve


1 Answers

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.

like image 151
VonC Avatar answered Oct 10 '22 03:10

VonC