git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to "revert hunk" in git gui?
@ 2010-09-02 18:59 Stefan Haller
  0 siblings, 0 replies; only message in thread
From: Stefan Haller @ 2010-09-02 18:59 UTC (permalink / raw)
  To: git

I always use git gui to make commits, and I like the way you can stage
and unstage hunks easily.

Often, when looking at the unstaged changes I come across some piece of
debug code that I forgot to delete, and I can't seem to find an easy way
to revert this hunk.  As a workaround, I can stage the entire file,
unstage the hunk I want to revert, and then choose "Revert changes" from
the Commit menu (which reverts just the unstaged hunks); but that's a
bit inconvenient.

I feel that this is such a common operation that I must be missing
something.

Thanks,
   Stefan


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-02 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-02 18:59 How to "revert hunk" in git gui? Stefan Haller

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).