* how to make a commit only contain existing files
@ 2010-12-07 21:00 david
2010-12-07 21:11 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: david @ 2010-12-07 21:00 UTC (permalink / raw)
To: git
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?
David Lang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to make a commit only contain existing files
2010-12-07 21:00 how to make a commit only contain existing files david
@ 2010-12-07 21:11 ` Jeff King
2010-12-08 0:52 ` david
0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2010-12-07 21:11 UTC (permalink / raw)
To: david; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to make a commit only contain existing files
2010-12-07 21:11 ` Jeff King
@ 2010-12-08 0:52 ` david
2010-12-08 3:39 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: david @ 2010-12-08 0:52 UTC (permalink / raw)
To: Jeff King; +Cc: git
On Tue, 7 Dec 2010, Jeff King wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to make a commit only contain existing files
2010-12-08 0:52 ` david
@ 2010-12-08 3:39 ` Jeff King
0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2010-12-08 3:39 UTC (permalink / raw)
To: david; +Cc: git
On Tue, Dec 07, 2010 at 04:52:48PM -0800, david@lang.hm wrote:
> >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.
It was introduced in 1.6.0. If you have something older, "git add -u &&
git add ." will do the same thing.
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-08 3:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 21:00 how to make a commit only contain existing files david
2010-12-07 21:11 ` Jeff King
2010-12-08 0:52 ` david
2010-12-08 3:39 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).