---
name: "git-applypatch"
section: "1"
platform: "linux"
package: "git-core"
version: "1:1.4.4.4-4+etch4"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/git-applypatch"
---

# git-applypatch(1)

Apply one patch extracted from an e-mail

## NAME

git-applypatch - Apply one patch extracted from an e-mail

## SYNOPSIS

*git-applypatch* \<msg\> \<patch\> \<info\> \[\<signoff\>\]

## DESCRIPTION

Takes three files \<msg\>, \<patch\>, and \<info\> prepared from an e-mail message by *git-mailinfo*, and creates a commit. It is usually not necessary to use this command directly.

This command can run applypatch-msg, pre-applypatch, and post-applypatch hooks. See \[1\]*hooks* for more information.

## OPTIONS

\<msg\>

Commit log message (sans the first line, which comes from e-mail Subject stored in \<info\>).

\<patch\>

The patch to apply.

\<info\>

Author and subject information extracted from e-mail, used on "author" line and as the first line of the commit log message.

## AUTHOR

Written by Linus Torvalds \<torvalds@osdl.org\>

## DOCUMENTATION

Documentation by Junio C Hamano and the git-list \<git@vger.kernel.org\>.

## GIT

Part of the [**git**(7)](/git/7.md) suite

## REFERENCES

- 1\. hooks

  hooks.html
