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
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With