git: 'send-email' 不是 git 命令。见'git --help'
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13746554/
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
git: 'send-email' is not a git command. See 'git --help'
提问by MOHAMED
I'm trying to send patches with the git send-emailBut I get the following error:
我正在尝试发送补丁,git send-email但出现以下错误:
git: 'send-email' is not a git command. See 'git --help'.
How to make git send-emailworks ?
如何制作git send-email作品?
Related links:
相关链接:
http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html
http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html
回答by axiom
You need to install the git-emailpackage for it to work.
您需要安装该git-email软件包才能使其工作。
On Ubuntu, the usual apt-get install git-emailworks fine. I can confirm the same for Fedoraas well (yum install git-email).
在Ubuntu,通常apt-get install git-email工作正常。我也可以确认Fedora( yum install git-email)相同。
cebeweementions the rationale in the comments:
cebewee在评论中提到了理由:
Linux distributions often like to split up packages to avoid dependencies needed only by optional functionality (like send-email).
Linux 发行版通常喜欢拆分包以避免仅可选功能(如发送电子邮件)所需的依赖项。
Note that you have to configureit before starting.
请注意,您必须在开始之前对其进行配置。

