git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git undo # last command
@ 2013-08-16  8:55 Saša Tomić
  2013-08-16 13:26 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Saša Tomić @ 2013-08-16  8:55 UTC (permalink / raw)
  To: git

Hi to all,

I've been using git for some time now, but I'm in no way a git expert.
I typically hack my way through the variety of commands that git
provides. I believe that most git users work similarly.

it just occurred to me -- the command that I would REALLY like to have
is simple:

  git undo

which 'undo'es the last action that has not been pushed yet --
whichever the action is. Similarly to the 'back' button in the
browser.

Currently, when I make a mistake, I have to search the net to find the
*right* command that will undo my last action/command. That's boring
and time consuming. git undo would make things much easier, I believe.

Would creating such command be possible? I guess that 'behind the
scenes', the command could analyze the reflog and act based on that.


What do you think?

-- 
Best regards,
Saša

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

end of thread, other threads:[~2013-08-16 22:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-16  8:55 git undo # last command Saša Tomić
2013-08-16 13:26 ` Jeff King
2013-08-16 14:21   ` Saša Tomić
2013-08-16 20:29     ` Fredrik Gustafsson

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