Re: Commit to other branch
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- May 31, 2010, 16:28 UTC
- Message-ID
- <vpq8w70m3wf.fsf@bauges.imag.fr>
- In-Reply-To
- <4C03D9C1.1060404@cedarsoft.com>
Johannes Schneider <mailings@cedarsoft.com> writes:
> I tried to "git stash " > But then *all* changes are stashed (including my changes)...
Not completely answering the question, but "git stash -k" (--keep-index) allows you to do a selective stash. If you have relevant changes staged, and want to commit the unstaged ones elsewhere, you can do something like
git stash -k git checkout elsewhere git commit git checkout back-to-your-branch git stash pop
-- Matthieu Moy http://www-verimag.imag.fr/~moy/