Re: Git automatic stashing?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: Git automatic stashing?

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:50:00

Nguyen Thai Ngoc Duy [off-list ref] writes:
On Tue, Nov 9, 2010 at 12:37 PM, Casey McGinty [off-list ref] wrote:
quoted
Is there any feature in git to perform and auto stash apply/pop when
trying to do a merge/rebase in a dirty working dir? This would save
some keystrokes from time-to-time, and make it easier for new users
unfamiliar with git.
And when switching branches too.
Isn't that what "git checkout -m" does?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: Git automatic stashing?

From: Thomas Rast <hidden>
Date: 2016-06-15 22:50:00

Matthieu Moy wrote:
Nguyen Thai Ngoc Duy [off-list ref] writes:
quoted
On Tue, Nov 9, 2010 at 12:37 PM, Casey McGinty [off-list ref] wrote:
quoted
Is there any feature in git to perform and auto stash apply/pop when
trying to do a merge/rebase in a dirty working dir? This would save
some keystrokes from time-to-time, and make it easier for new users
unfamiliar with git.
And when switching branches too.
Isn't that what "git checkout -m" does?
The problem with checkout -m is that you get only a single shot at
conflict resolution.  'git stash pop' does not drop the stash in the
case of a conflict, so you can try again.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help