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

Ler*_*rve 5 git-svn github-for-windows

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

试错

我尝试了以下方法:

  1. Windows>开始>所有程序> GitHub,Inc> Git Shell
  2. 从Git Shell PowerShell窗口: 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
Run Code Online (Sandbox Code Playgroud)

谷歌

是的,我已经谷歌搜索,但没有找到答案.

Von*_*onC 4

正如《Git Bash 和 GitHub for Windows shell 有什么区别?》中提到的,GitHub Shellposh-git基于git-svn.

然而,此发行说明提到:

  • git-svn运营:git svn <tab>

这意味着,和-之间没有“ ” 。gitsvn

如果问题仍然存在,并且由于GitHub for Windows还包含msysgit发行版,因此您可以打开 msysgit bash,并尝试git svn那里的命令。


加: