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

Stashing individual files

From
Chris Leong <walkraft@gmail.com>
Date
Jan 2, 2012, 23:32 UTC
Message-ID
<CAJ6vYjduoBNrRcvcvQbX_yY-3-Qm5ZbXOM0WQpWRwC1H1OCqaA@mail.gmail.com>
Hi all,

Thanks for making such a wonderful product. I find the stash command really useful, but it doesn't work very well when I just need to temporarily revert one or two files. I know that there is the interactive command, but if you have modified a large number of files, then it takes quite a bit of effort. Is there any way I can define an alias, stashfiles, so that I can just type git stashfiles file1 file2? Also, please consider adding such a feature into a future version.

Thanks,
Chris
Next: Jeff King
Message 1 of 6 in “Stashing individual files”
  1. Chris LeongJan 2, 2012
  2. Jeff KingJan 3, 2012
  3. Junio C HamanoJan 3, 2012
  4. Jeff KingJan 3, 2012
  5. Junio C HamanoJan 3, 2012
  6. Tor ArntsenJan 4, 2012

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.