Re: Unexpected behaviour with git stash save --keep-index?
- From
- Jonas Flodén <jonas.floden@gmail.com>
- Date
- Sep 2, 2008, 06:20 UTC
- Message-ID
- <g9ilut$n58$1@ger.gmane.org>
- In-Reply-To
- <20080902012804.GB6739@neumann>
SZEDER Gábor wrote: > 'git stash save --keep-index' means "save all local modifications and > remove all modifications from the working tree that are not in the > index". This differs substantially from "save only those > modifications that are not in the index, and then remove them from > the working tree". >
Thanks for the explanation. It seemed strange first but now I know why it does that.
>> Also maybe someone could someone recommend a way to split an >> unclean working dir into several patches/commits? > The workflow described at the end of stash's man page (under 'Testing > partial commits') works well for me. >
Thanks. What about the case when I already have a number of existing patches/commits and want to split the working dir into them.
Regards, Jonas