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

Re: Stashing untracked files

From
Wincent Colaiuta <win@wincent.com>
Date
Sep 30, 2007, 13:18 UTC
Message-ID
<115E3AB7-BE23-472B-9321-641901054A6A@wincent.com>
In-Reply-To
<46FF1F1E.2050000@theory.org>
El 30/9/2007, a las 5:59, Neil Macneale escribió:
> $ git stash -u   # stash everything, even untracked files. I never
>                  # suggesting modifying the default behavior.

Provided it's not the default behaviour, and provided that it doesn't add ignored files, this sounds perfectly reasonable and potentially quite useful.

I say *potentially* only because I've yet to find a situation wherein I can't just do the following:

<hack> # lots of untracked files floating around $ git stash # untracked files stay exactly where they were <orthogonal hacking> # untracked files still there $ git stash apply # still there... <hack> # still there...

If the content of the untracked files is both, (a) important and (b) being modified over time, then perhaps it should be being tracked.

Wincent
Previous: Steffen ProhaskaNext: Johannes Schindelin
Message 8 of 13 in “Stashing untracked files”
  1. Neil MacnealeSep 29, 2007
  2. Johannes SchindelinSep 29, 2007
  3. Benoit SIGOURESep 29, 2007
  4. Neil MacnealeSep 29, 2007
  5. Johannes SchindelinSep 29, 2007
  6. Neil MacnealeSep 30, 2007
  7. Steffen ProhaskaSep 30, 2007
  8. Wincent ColaiutaSep 30, 2007
  9. Johannes SchindelinSep 29, 2007
  10. Tom PrinceSep 29, 2007
  11. Johannes SchindelinSep 29, 2007
  12. Tom TobinSep 30, 2007
  13. Johannes SchindelinSep 30, 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.