Re: Better cooperation between checkouts and stashing
- From
- Markus Elfring <markus.elfring@web.de>
- Date
- Feb 27, 2010, 21:33 UTC
- Message-ID
- <4B898F97.90706@web.de>
- In-Reply-To
- <7vhbq0wuy6.fsf@alter.siamese.dyndns.org>
> If you are starting from "if your work tree is dirty, you MUST stash > before checking out another branch", the suggestion is understandable. > But the thing is, that starting point is not quite correct.
Does an option exist for the command "git checkout" to return to the specified branch without modifications in one step? When will it not be needed to reset the work tree to the last corresponding commit?
Regards, Markus