git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recover a stash
@ 2007-10-24 17:26 Medve Emilian-EMMEDVE1
  2007-10-24 17:42 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Medve Emilian-EMMEDVE1 @ 2007-10-24 17:26 UTC (permalink / raw)
  To: git

Hello,


Is there any way to recover a stash as a... stash? I accidently removed
a stash I still need and I'd like to recover it as a stash. I can see
the dangling commit objects in the database with git lost-found and I
can have a branch/head point at them, but it's not understood as stash
anymore.


Thank you,
Emil.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Recover a stash
  2007-10-24 17:26 Recover a stash Medve Emilian-EMMEDVE1
@ 2007-10-24 17:42 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2007-10-24 17:42 UTC (permalink / raw)
  To: Medve Emilian-EMMEDVE1; +Cc: git

Hi,

On Wed, 24 Oct 2007, Medve Emilian-EMMEDVE1 wrote:

> Is there any way to recover a stash as a... stash? I accidently removed 
> a stash I still need and I'd like to recover it as a stash. I can see 
> the dangling commit objects in the database with git lost-found and I 
> can have a branch/head point at them, but it's not understood as stash 
> anymore.

You should be able to recover it with

	git update-ref refs/stash <commit>

Where the <commit> points to the merge commit of the stashed index and the 
stashed working directory.

Hth,
Dscho

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-24 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 17:26 Recover a stash Medve Emilian-EMMEDVE1
2007-10-24 17:42 ` Johannes Schindelin

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).