The answer is 'git am'.
I thought, reading the description, it was only for retrieving patched from
a mailbox.

git am --help
  git-am - Apply a series of patches from a mailbox

But it also apply patched form file and creates a commit.


git log

commit c0951a06f8bdd4d659dc356cfef77574d9ead2f4
Author: Valerio Pachera <siri...@gmail.com>
Date:   Mon Jan 13 08:07:15 2014 +0100

    first commit


git am ../doc/0001-changed-first-line.patch
Applying: changed first line

git log

commit fa1d035815d1460d29a180ccbd46cb0a15d95412
Author: Valerio Pachera <siri...@gmail.com>
Date:   Mon Jan 13 08:08:03 2014 +0100

    changed first line

commit c0951a06f8bdd4d659dc356cfef77574d9ead2f4
Author: Valerio Pachera <siri...@gmail.com>
Date:   Mon Jan 13 08:07:15 2014 +0100

    first commit

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to