IT系/リファレンス/Gitコマンド/git_am

Last-modified: 2020-05-28 (木) 03:34:16

git am

メールボックスから一連のパッチを適用するコマンド。
format-patch で作ったパッチを適用する。

用例

  • パッチを適用
    git am 0001-seeing-if-this-helps-the-gem.patch
  • パッチを三方向マージで適用(~/downloads/patches/配下の全patchファイルを適用)
    git am --3way ~/downloads/patches/*.patch
  • たくさんのパッチが含まれる mbox からパッチを適用(対話モード)
    git am -3 -i mbox

書式

git am [options] <patchファイル>

公式によると以下の通り。

git am [--signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8]
       [--[no-]3way] [--interactive] [--committer-date-is-author-date]
       [--ignore-date] [--ignore-space-change | --ignore-whitespace]
       [--whitespace=<option>] [-C<n>] [-p<n>] [--directory=<dir>]
       [--exclude=<path>] [--include=<path>] [--reject] [-q | --quiet]
       [--[no-]scissors] [-S[<keyid>]] [--patch-format=<format>]
       [(<mbox> | <Maildir>)…]
git am (--continue | --skip | --abort | --quit | --show-current-patch[=(diff|raw)])

options

/xxxx

etc.

説明

XXXX

関連

参考リンク

その他メモ

なにかあれば。