git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Usability of git stash
@ 2008-10-15 19:24 Anders Melchiorsen
  2008-10-15 19:31 ` Brandon Casey
  0 siblings, 1 reply; 15+ messages in thread
From: Anders Melchiorsen @ 2008-10-15 19:24 UTC (permalink / raw)
  To: git

I find the UI of git stash quite unfortunate.

First, I would prefer list to be the default action, so that typing
"git stash" in the hope of getting some help would not make me lose my
local changes.

When trying to recover from that scenario, I do "git stash apply" as
recommended by the "git stash" output. Now I still lost my index
state, all changes are unstaged.

The "git command subcommand" syntax seems different from other git
commands. For example, you do not delete a branch with "git branch
delete".

The default naming of stashes makes it hard to remember what I was
actually working on. Forcing me to give it a description (like branch
and commit do) would probably have saved me some time overall.

And finally, a "git stash clear" has quite far-reaching consequences.
Most other mistakes are easy to recover from, but not this one.


I offer these observations just for discussion. It has not been
possible for me to think of any backwards compatible improvements,
other than staying away from "git stash".


Cheers,
Anders.

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

end of thread, other threads:[~2008-10-20 16:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 19:24 Usability of git stash Anders Melchiorsen
2008-10-15 19:31 ` Brandon Casey
2008-10-16 11:24   ` David Kastrup
2008-10-16 15:22     ` Brandon Casey
2008-10-18  9:26       ` Anders Melchiorsen
2008-10-19 18:40         ` Shawn O. Pearce
2008-10-19 21:08           ` Leo Razoumov
2008-10-19 21:49             ` Shawn O. Pearce
2008-10-19 23:12           ` Stephan Beyer
2008-10-20  9:36             ` Miles Bader
2008-10-20  0:36           ` Jeff King
2008-10-20  5:29             ` Junio C Hamano
2008-10-20  5:23         ` Miles Bader
2008-10-20  9:49         ` Andreas Ericsson
2008-10-20 16:33         ` Brandon Casey

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