git-svn 不是 git 命令? [英] git-svn not a git command?

查看:57
本文介绍了git-svn 不是 git 命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试获取 git 控制下项目的旧 svn 转储时,我遇到了一个有趣的问题.每当我运行 git svn 时,我都会收到一条错误消息,指出它不是 git 命令,但我可以使用 git help 获取相关文档.我的安装有问题吗,或者我只是在这里遗漏了什么?

While attempting to get an old svn dump of a project under git control, I ran into an interesting problem. Whenever I run git svn, I get an error saying it isn't a git command, yet there is documentation for it that I can pull up using git help. Is there something wrong with my install, or am I just missing something here?

我可能还应该提到我在 Windows XP 下运行 msysGit 版本 1.6.1.9.g97c34,我得到的错误是:

I should probably also mention that I am running msysGit version 1.6.1.9.g97c34 under Windows XP, and the error I get is:

$ git svn 
git: 'svn' is not a
git-command. See 'git --help'.

Did you mean one of these?
        fsck
        show

推荐答案

我不确定 git svn 曾经使用过最近的 Git Windows 发行版(1.5.6 后).

I am not sure that git svn has ever worked with recent Git Windows distribution (post 1.5.6).

很多问题之前已经报告过,所以git svn 可能不包含在当前的 msysGit 版本中.

Many problems have been reported before, so git svn may very much be not included in current msysGit releases.

另一个当前活跃的Windows 上的 Git"开发mingw.git 确实如此在其 README svn 不起作用.

Another current active "Git on Windows" development mingw.git does state in its README that svn does not work.

这个 Msysgit 的线程确实表明git svn 可能会在某些时候重新整合,但进展仍然缓慢.

This thread of Msysgit does suggest that git svn may be reintegrated at some points, but progress are still slow.

更新:从 MSysGit1.6.2(2009 年 3 月上旬)开始,git-svn 再次工作.请参阅此SO 问题.

Update: from MSysGit1.6.2 (early March 2009), git-svn works again. See this SO question.

更新:使用 现代 (2017) Git for Windows 2.x, git svn 已经包含.
不需要 sudo apt-get install git-svn,这只能在 WSL(Linux 的 Windows 子系统)shell 会话.

Update: with a modern (2017) Git for Windows 2.x, git svn is already included.
No need for sudo apt-get install git-svn, which would only be possible in a WSL (Windows Subsystem for Linux) shell session anyway.

这篇关于git-svn 不是 git 命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆