$ git --version git version 1.6.1.9.g97c34 $ mkdir test && cd test && git init && git commit --allow-empty -m "Initial commit" $ touch .gitignore && git add .gitignore && git commit -m "Add empty .gitignore" $ git diff --stat HEAD^.. 0 files changed, 0 insertions(+), 0 deletions(-) May be the following is better? .gitignore | 0 + 1 files changed, 0 insertions(+), 0 deletions(-) Ping Yin -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html