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

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

问题描述

当试图在git控制下获得项目的旧svn转储时,我遇到了一个有趣的问题。每当我运行 git svn ,我得到一个错误,说它不是一个git命令,但是有文档可以使用 git help 。我的安装有什么问题,或者我只是在这里丢失了什么?



编辑:我应该还提到我运行msysGit版本1.6.1.9.g97c34 Windows XP和我得到的错误是:

$ p $ git svn
git:'svn'不是
git-command 。参见'git --help'。

你是指其中之一?
fsck
show


解决方案

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

许多问题已经被报告过,所以当前的msysGit版本中很少包含 git svn



<另一个当前活跃的Windows上的Git开发 mingw.git 的状态在其 README 那svn不起作用。



Msysgit的线程的建议est git svn可能会在某些时候重新整合,但进度仍然很慢。




更新:来自MSysGit1.6.2( 2009年3月初), git-svn 再次运行。请参阅此 SO问题




更新:带有 modern(2017)Git for Windows 2.x git svn 已包含在内。

不需要 sudo apt-get install git-svn ,这只能在 WSL(适用于Linux的Windows子系统)shell会话


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?

Edit: 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

解决方案

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

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

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

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


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


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天全站免登陆