git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Recover a stash

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 24, 2007, 17:42 UTC
Message-ID
<Pine.LNX.4.64.0710241841080.25221@racer.site>
In-Reply-To
<598D5675D34BE349929AF5EDE9B03E27016E5841@az33exm24.fsl.freescale.net>
Hi,
On Wed, 24 Oct 2007, Medve Emilian-EMMEDVE1 wrote:
Show 5 quoted lines
> 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

Previous: Medve Emilian-EMMEDVE1
Message 2 of 2 in “Recover a stash”
  1. Medve Emilian-EMMEDVE1Oct 24, 2007
  2. Johannes SchindelinOct 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.