I'm generating some patches for an opensource project and my From: line is always email@example.com. I've been manually editing the From: line to be firstname.lastname@example.org before running git send-email.
From fab0cf45f10686688a8138f60a09505200cbb2a4 Mon Sep 17 00:00:00 2001
From: John Doe <email@example.com>
Date: Mon, 25 Feb 2013 23:06:23 -0500
Subject: [PATCH] nand: adjust erase/read/write partition/chip size for bad blocks
Setting your git identity should be enough:
git config --global user.email firstname.lastname@example.org git config --global user.name "John Doe"
You can also set your identity per git repository: run these commands inside that git repostory and simply omit
You probably should not use
email@example.com because if someone
git am it, this commit will have not your identity.
Probably the only reason to do that is to avoid spam to your primary address - but I think you will get it anyway as soon as it becomes public.