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:
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
Yes, I already googled, but didn't find an answer.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With