git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git reset -p on working tree
@ 2010-11-23  9:11 Jeenu V
  2010-11-23  9:20 ` knittl
  0 siblings, 1 reply; 14+ messages in thread
From: Jeenu V @ 2010-11-23  9:11 UTC (permalink / raw)
  To: git

Often I find it useful to selectively undo the modifications that I
did to my working tree. The -p option to 'reset' that selectively
resets changes back to a given commit. Unfortunately the option
reports itself to be incompatible with --{hard,soft,mixed} and thus
can't be applied to working tree.

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.

-- 
Jeenu

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-11-25 16:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23  9:11 Git reset -p on working tree Jeenu V
2010-11-23  9:20 ` knittl
2010-11-23 10:26   ` Jeenu V
2010-11-23 10:32     ` Jeenu V
2010-11-23 10:58       ` knittl
2010-11-23 13:00         ` Jeenu V
2010-11-23 14:20           ` [PATCH] Hint at "checkout -p" in the "reset --patch <type>" error message Štěpán Němec
2010-11-23 14:59             ` Jeff King
2010-11-23 15:23               ` Štěpán Němec
2010-11-25  8:55                 ` Michael J Gruber
2010-11-25 10:56                   ` Jakub Narebski
2010-11-25 13:10                     ` Michael J Gruber
2010-11-25 15:56                   ` Matthieu Moy
2010-11-25 16:14                     ` 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).