git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* defaulting git stash to "--keep-index"
@ 2013-11-20  1:50 Tim Chase
  2013-11-20  2:08 ` Nathan Collins
  2013-11-20  2:10 ` Jason St. John
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Chase @ 2013-11-20  1:50 UTC (permalink / raw)
  To: git

Having lost "add -p" work enough times when stashing, I finally
dug into the docs to see how to prevent it, discovering that
"--keep-index" does exactly what I want.  However, now I have trouble
remembering to add the "--keep-index" until after I've shot myself in
the foot.  How do I go about getting "git stash" to default to
"--keep-index"?  I've played around a little with aliases, but
haven't found the right incantation.

The existence of "--no-keep-index" suggests there's some way to make
"--keep-index" the default, but I'm missing it.

Thanks,

-tkc

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

end of thread, other threads:[~2013-11-20  2:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-20  1:50 defaulting git stash to "--keep-index" Tim Chase
2013-11-20  2:08 ` Nathan Collins
2013-11-20  2:10 ` Jason St. John

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