From: Jeff King Date: Wed, 13 Jun 2007 18:40:17 GMT Subject: Re: How to stage a tree with all changes? Message-ID: <20070613184017.GF10941@coredump.intra.peff.net> In-Reply-To: <861wgf964g.fsf@lola.quinscape.zz> On Wed, Jun 13, 2007 at 06:22:23PM +0200, David Kastrup wrote: > git-add . > git-commit -a > > seemingly overlooks deletions. It shouldn't. Try this: mkdir repo && cd repo git init echo foo >foo git add . git commit -m initial rm foo echo bar >bar git add . git commit -a 'bar' is scheduled for addition, and 'foo' is scheduled for deletion. Have you perhaps removed a file, but it's still in the working directory, and so picked up by your git-add? Can you give us a test case? > What am I overlooking? This should be simple, shouldn't it? Yes, it should. :) -Peff