From: Tim Chase <git@tim.thechases.com>
To: git@vger.kernel.org
Subject: defaulting git stash to "--keep-index"
Date: Tue, 19 Nov 2013 19:50:09 -0600 [thread overview]
Message-ID: <20131119195009.6d4e183b@bigbox.christie.dr> (raw)
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
next reply other threads:[~2013-11-20 1:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 1:50 Tim Chase [this message]
2013-11-20 2:08 ` defaulting git stash to "--keep-index" Nathan Collins
2013-11-20 2:10 ` Jason St. John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131119195009.6d4e183b@bigbox.christie.dr \
--to=git@tim.thechases.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).