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

Request: git stash create --include-untracked

From
GBGioele Barabucci <gioele@svario.it>
Date
Nov 12, 2015, 10:58 UTC
Message-ID
<564470F0.7010105@svario.it>
Hello,

`git stash create` does not accepts the same options that `git stash save` accepts.

It would be handy to have `git stash create` accept `-u`/`--include-untracked` and `-a`/`--all`. This would allow a very simple "freeze-the-world-I-have-to-leave emergency backup" command such as

     git push -f origin $(git stash create 
-u):refs/heads/emergency/$USER-$(date +%s)

(Derived from <https://lwn.net/Articles/664137/> by user nybble41; useful for <http://stackoverflow.com/q/10226586/449288>.)

Regards,
-- 
Gioele Barabucci <gioele@svario.it>
Message 1 of 1 in “Request: git stash create --include-untracked”
  1. Gioele BarabucciNov 12, 2015

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.