如何使用“GitHub for Windows”克隆Subversion存储库?

时间:2013-05-26 11:05:55

标签: git-svn github-for-windows

问题

我安装了GitHub for Windows,并想知道我是否可以使用“Git Shell”附带的“Git Shell”克隆Subversion存储库。

试错

我尝试了以下内容:

  1. Windows>开始>所有程序> GitHub,Inc> Git Shell
  2. 从Git Shell PowerShell窗口:git-svn clone -s http://example.com/my_subversion_repo .
  3. 然后,我收到了此错误消息:

    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搜索了,但没有找到答案。

1 个答案:

答案 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命令。