Re: Git reset -p on working tree
- From
Jeenu V <jeenuv@gmail.com>
- Date
- Nov 23, 2010, 10:32 UTC
- Message-ID
- <AANLkTindHnjeXEGbKWiQkWgoUBwqZbdx71sQwNr_gFp0@mail.gmail.com>
- In-Reply-To
- <AANLkTimQ644C-dEoJTj8bNd9y+YzpMez7D1KLZFNEe7c@mail.gmail.com>
On Tue, Nov 23, 2010 at 3:56 PM, Jeenu V <jeenuv@gmail.com> wrote:
Show 11 quoted lines
> On Tue, Nov 23, 2010 at 2:50 PM, knittl <knittl89@googlemail.com> wrote: >>> Right now I do this with vimdiff, by applying 'git diff' in reverse. >>> Wish reset supports -p on working tree operations as well because the >>> -p framework (of add, and reset) feels good to use. >> >> >> there's `git checkout -p` to selectively remove changes from your working tree. >> (also `git stash -p` to selectively stash changes temporarily) > > Surprised to know that checkout and stash supports it! Thanks a lot > for pointing out.
I think Git could suggest 'checkout -p' and/or 'stash -p' when user tries to use -p with --{hard,soft,mixed} with reset command (in addition to mentioning that they're incompatible), since relatively new users are used to 'reset' than other commands to reset their working trees.
-- Jeenu