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

Git reference git stash

From
ASAron Sigfridsson <aron.sigfridsson@gmail.com>
Date
Mar 5, 2026, 20:07 UTC
Message-ID
<CAB0c_PjtTs8dWJCoUnQfCUM_YOaK3e3FcZfCgWjTOLcNWj-6nA@mail.gmail.com>
Hi!

In the reference for git stash there is a section that specifies the use of the pathspec option. It refers you to the gitglossary section about pathspec for further information. In the glossary it states: "See the documentation of each command for whether paths are relative to the current directory or toplevel"

In the documentation for git stash I can't find any information about whether it is top level or relative to current directory. Am I missing something, or is the information not there?

Thank you for your work!
Aron
Next: Mirko Faina
Message 1 of 5 in “Git reference git stash”
  1. Aron SigfridssonMar 5, 2026
  2. Mirko FainaMar 6, 2026
  3. Mirko FainaMar 6, 2026
  4. erik88Mar 6, 2026
  5. Junio C HamanoMar 6, 2026

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.