* git stash merge
@ 2015-04-20 16:36 Pawel Por
2015-04-20 18:12 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Pawel Por @ 2015-04-20 16:36 UTC (permalink / raw)
To: git
Hi,
I've just upgraded the linux kernel git source tree and I want to
"pop" my stashed work. I do the following:
git stash pop
and I got the following message:
mm/Makefile: needs merge
unable to refresh index
I also tried:
git stash pop --index
How can I overcome this obstacle.
I did "git stash" before "git pull".
Thanks for help.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git stash merge
2015-04-20 16:36 git stash merge Pawel Por
@ 2015-04-20 18:12 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2015-04-20 18:12 UTC (permalink / raw)
To: Pawel Por; +Cc: git
Pawel Por <porparek@gmail.com> writes:
> I've just upgraded the linux kernel git source tree and I want to
> "pop" my stashed work. I do the following:
> git stash pop
>
> and I got the following message:
> mm/Makefile: needs merge
> unable to refresh index
The symptom indicates that "upgraded the linux kernel git source
tree" has not been cleanly completed and has an unmerged entry in
the index. That is the first thing "stash pop" tries to check that
the source tree does not have any pending change that does not have
anything to do with your application of the stash, and you seem to
be triggering that safety check.
If your working tree does not have changes of any value, perhaps
"git reset --hard && git pull" (or you may even want to resort to
"git fetch && git reset --hard origin") to make sure "upgraded the
source tree" part truly has cleanly completed may be a good second
step to get "stash pop" going. The good first step is to see what
local changes you have, of course---perhaps your "upgraded the linux
kernel git source tree" conflicted with your local changes that you
need to resolve first.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-20 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 16:36 git stash merge Pawel Por
2015-04-20 18:12 ` Junio C Hamano
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).