Re: Git automatic stashing?
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Nov 9, 2010, 19:19 UTC
- Message-ID
- <201011092019.09239.trast@student.ethz.ch>
- In-Reply-To
- <vpqd3qe8g5j.fsf@bauges.imag.fr>
Matthieu Moy wrote:
Show 11 quoted lines
> Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes: > > > On Tue, Nov 9, 2010 at 12:37 PM, Casey McGinty <casey.mcginty@gmail.com> wrote: > >> 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