问题
我安装了GitHub for Windows,并想知道我是否可以使用“Git Shell”附带的“Git Shell”克隆Subversion存储库。
试错
我尝试了以下内容:
git-svn clone -s http://example.com/my_subversion_repo .
然后,我收到了此错误消息:
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搜索了,但没有找到答案。
答案 0 :(得分:4)
正如“What is the difference between Git Bash and the GitHub for Windows shell?”中所述,GitHub Shell基于posh-git
,支持git-svn
。
但是,release note提及:
git-svn
操作:git svn <tab>
这意味着,-
和git
之间没有“svn
”。
如果问题仍然存在,并且由于GitHub for Windows还包含msysgit分发版,您可以改为打开msysgit bash,并在那里尝试git svn
命令。