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

stash push/pop unstages files?

From
YYuri <yuri@rawbw.com>
Date
Sep 5, 2021, 17:09 UTC
Message-ID
<0e1f7a47-89e3-5f49-663e-bdd3e8efb6e5@rawbw.com>

In one sub-directory I altered some files, added a directory with files and added the changes (git add .)

Then I called 'git stash push && git stash pop'.

After this the newly added directory remained in the staged status, but altered files became unstaged.

Is this an intended behavior?

Why stash push/pop unstages files? Shouldn't it preserve the directory as-is?

Thanks,
Yuri
Next: Chris Torek
Message 1 of 4 in “stash push/pop unstages files?”
  1. YuriSep 5, 2021
  2. Chris TorekSep 5, 2021
  3. YuriSep 5, 2021
  4. Chris TorekSep 5, 2021

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.