{"thread":{"id":"25986","subject":"how to make a commit only contain existing files","startedAt":"2010-12-07T21:00:18Z","lastAt":"2010-12-08T03:39:10Z","messageCount":4,"participants":["david@lang.hm","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"157542","messageId":"alpine.DEB.2.00.1012071203190.662@asgard.lang.hm","threadId":"25986","inReplyTo":null,"subject":"how to make a commit only contain existing files","fromName":"","fromEmail":"david@lang.hm","sentAt":"2010-12-07T21:00:18Z","receivedAt":"2010-12-07T21:00:18Z","isPatch":false,"sender":{"key":"david@lang.hm","avatar":null},"body":"I know that I can do a git rm to explictly remove files, but is there an \neasy way to just say that this commit should contain all the files that \nexist at this point in time, without carrying over any files that were in \na prior commit but that don't exist now?\n\nDavid Lang\n"},{"id":"157543","messageId":"20101207211126.GA29453@sigill.intra.peff.net","threadId":"25986","inReplyTo":"alpine.DEB.2.00.1012071203190.662@asgard.lang.hm","subject":"Re: how to make a commit only contain existing files","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2010-12-07T21:11:26Z","receivedAt":"2010-12-07T21:11:26Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Dec 07, 2010 at 01:00:18PM -0800, david@lang.hm wrote:\n\n> I know that I can do a git rm to explictly remove files, but is there\n> an easy way to just say that this commit should contain all the files\n> that exist at this point in time, without carrying over any files\n> that were in a prior commit but that don't exist now?\n\nWon't \"git add -A; git commit\" do what you want?\n\n-Peff\n"},{"id":"157564","messageId":"alpine.DEB.2.00.1012071652160.662@asgard.lang.hm","threadId":"25986","inReplyTo":"20101207211126.GA29453@sigill.intra.peff.net","subject":"Re: how to make a commit only contain existing files","fromName":"","fromEmail":"david@lang.hm","sentAt":"2010-12-08T00:52:48Z","receivedAt":"2010-12-08T00:52:48Z","isPatch":false,"sender":{"key":"david@lang.hm","avatar":null},"body":"On Tue, 7 Dec 2010, Jeff King wrote:\n\n> On Tue, Dec 07, 2010 at 01:00:18PM -0800, david@lang.hm wrote:\n>\n>> I know that I can do a git rm to explictly remove files, but is there\n>> an easy way to just say that this commit should contain all the files\n>> that exist at this point in time, without carrying over any files\n>> that were in a prior commit but that don't exist now?\n>\n> Won't \"git add -A; git commit\" do what you want?\n\nit very well may, I'll have to upgrade git on that box to a version that \nsupports it.\n\nThanks.\n\nDavid Lang\n"},{"id":"157572","messageId":"20101208033910.GA4065@sigill.intra.peff.net","threadId":"25986","inReplyTo":"alpine.DEB.2.00.1012071652160.662@asgard.lang.hm","subject":"Re: how to make a commit only contain existing files","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2010-12-08T03:39:10Z","receivedAt":"2010-12-08T03:39:10Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Dec 07, 2010 at 04:52:48PM -0800, david@lang.hm wrote:\n\n> >Won't \"git add -A; git commit\" do what you want?\n> \n> it very well may, I'll have to upgrade git on that box to a version\n> that supports it.\n\nIt was introduced in 1.6.0. If you have something older, \"git add -u &&\ngit add .\" will do the same thing.\n\n-Peff\n"}]}