Re: how to make a commit only contain existing files
- From
Jeff King <peff@peff.net>
- Date
- Dec 7, 2010, 21:11 UTC
- Message-ID
- <20101207211126.GA29453@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.2.00.1012071203190.662@asgard.lang.hm>
On Tue, Dec 07, 2010 at 01:00:18PM -0800, david@lang.hm wrote:
> I know that I can do a git rm to explictly remove files, but is there > an easy way to just say that this commit should contain all the files > that exist at this point in time, without carrying over any files > that were in a prior commit but that don't exist now?
Won't "git add -A; git commit" do what you want?
-Peff