简体   繁体   English

无法从命令行调用git-svn

[英]Can't invoke git-svn from command line

I just installed git on my linux machine (Kubuntu distro) by running the following command: 我只是通过运行以下命令在我的linux机器(Kubuntu发行版)上安装了git:

sudo apt-get install git-core git-doc gitweb git-gui gitk git-email git-svn

I would like to migrate a project which currently uses subversion to git. 我想将当前使用Subversion的项目迁移到git。 But if I run git-svn I get the message : git-svn: command not found 但是,如果我运行git-svn,则会收到消息: git-svn:命令未找到

Any way to fix this? 有任何解决这个问题的方法吗?

Thank You. 谢谢。

The (new) interface to run git-svn is actually: 运行git-svn的(新)接口实际上是:

$ git svn <command> [options] [arguments]

(notice the lack of - ) (注意缺少-

sudo apt-get install git-svn

This command does it all in Ubuntu. 此命令在Ubuntu中完成所有操作。 Your distro (example yum install) can probably do it. 您的发行版(例如yum安装)可能可以做到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM