无法从命令行调用 git-svn
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1737275/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't invoke git-svn from command line
提问by JohnMyr
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. But if I run git-svn I get the message : git-svn: command not found
我想将当前使用 subversion 的项目迁移到 git。但是,如果我运行 git-svn,我会收到消息:git-svn: command not found
Any way to fix this?
有任何解决这个问题的方法吗?
Thank You.
谢谢你。
回答by Ben James
The (new) interface to run git-svn
is actually:
要运行的(新)界面git-svn
实际上是:
$ git svn <command> [options] [arguments]
(notice the lack of -
)
(注意缺少-
)
回答by Anwaar Ali
sudo apt-get install git-svn
This command does it all in Ubuntu. Your distro (example yum install) can probably do it.
此命令在 Ubuntu 中完成所有操作。您的发行版(例如 yum install)可能可以做到。