Re: splitting a commit that adds new files
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 3, 2014, 18:11 UTC
- Message-ID
- <xmqqioswf4mh.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20140202231110.GC16196@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> [1] I _do_ use "reset -p" when splitting commits, but I do not think it > is useful here. I use it for "oops, I staged this change, but it > actually belongs in the next commit. Undo my staging, but leave the > changes in the working tree for the next one".
Sure. I thought that was exactly what Duy was attempting to do when he splitted a commit into two (or more).