Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: 'send-email' is not a git command. See 'git --help'

Tags:

git

I'm trying to send patches with the git send-email But I get the following error:

git: 'send-email' is not a git command. See 'git --help'. 

How to make git send-email works ?

Related links:

http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html

like image 891
MOHAMED Avatar asked Dec 06 '12 15:12

MOHAMED


People also ask

How to test git send email?

You can check if send-email is available by running "git send-email --help". If it shows the man page for send-email, then send-email is available. Otherwise, you need to install the send-email command.

What is the git push command?

The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.


1 Answers

You need to install the git-email package for it to work.

On Ubuntu, the usual apt-get install git-email works fine. I can confirm the same for Fedora as well (yum install git-email).

cebewee mentions the rationale in the comments:

Linux distributions often like to split up packages to avoid dependencies needed only by optional functionality (like send-email).

Note that you have to configure it before starting.

like image 75
axiom Avatar answered Sep 28 '22 02:09

axiom