Da Anonimo (non verificato) , 29 Aprile 2026

La tradizione mailbox

git am applica patch in formato mbox: il formato usato da progetti guidati da mailing list come il kernel Linux e Git stesso.

Apply base

git am 0001-feature.patch
git am out/*.patch
git am --3way out/*.patch
git am --keep-cr

Da client di posta

cat /var/mail/inbox | git am

Signed-off-by

git am --signoff out/*.patch
git config format.signOff true

Direttamente da URL

curl -sL https://lore.kernel.org/.../t.mbox.gz | gunzip | git am
b4 am https://lore.kernel.org/...

Comportamento di reset

git am --abort
git am --skip
git am --continue

Gestione whitespace

git am --whitespace=warn out/*.patch
git am --whitespace=fix out/*.patch
git am --ignore-whitespace out/*.patch

Errori comuni

Applicare patch nell'ordine sbagliato — i file mbox sono di solito pre-numerati. Dimenticare --3way quando la patch e stata generata su una base diversa.