git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: how to make a commit only contain existing files

From
Ddavid@lang.hm <david@lang.hm>
Date
Dec 8, 2010, 00:52 UTC
Message-ID
<alpine.DEB.2.00.1012071652160.662@asgard.lang.hm>
In-Reply-To
<20101207211126.GA29453@sigill.intra.peff.net>
On Tue, 7 Dec 2010, Jeff King wrote:
Show 8 quoted lines
> 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?

it very well may, I'll have to upgrade git on that box to a version that supports it.

Thanks.
David Lang
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “how to make a commit only contain existing files”
  1. david@lang.hmDec 7, 2010
  2. Jeff KingDec 7, 2010
  3. david@lang.hmDec 8, 2010
  4. Jeff KingDec 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.