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

git stash clear

From
EDEric Davis <endavis@gmail.com>
Date
Oct 10, 2007, 16:42 UTC
Message-ID
<feivdo$sgi$1@sea.gmane.org>
Hey Everyone,
  I have a problem that happened when using git stash.

I was working on a branch and applied a stash to it. There were no conflicts. I figured I was done with the stuff in stash, so I did a git stash clear. Not good. It also reverted my branch to before I did the stash apply and now I have none of the changes because the stash is also gone. Is this by design? If so, why?

Is there anyway to get this stash back?

Thanks, Eric

Next: Eric Davis
Message 1 of 2 in “git stash clear”
  1. Eric DavisOct 10, 2007
  2. Eric DavisOct 10, 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.