Volume XXII, number 279Tuesday, October 6, 2026Latest message 42 minutes ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

'git stash' pushes files that are not listed in the command line

1 messages between Jul 31, 2026 and Jul 31, 2026, from Yuri.

Plain Markdown or JSON for tools and agents.

YuriJul 31, 2026, 07:49 UTC on lore

I work in the FreeBSD ports tree. There are multiple ports (subdirectories) that have changes.

I intend to stash only 3 ports: $ git stash push -m "docling: some updates" textproc/py-docling textproc/py-docling-mcp textproc/py-docling-slim

However, other files also get into stash: $ git stash show -p

diff --git a/misc/github-copilot-language-server/distinfo-node22 
b/misc/github-copilot-language-server/distinfo-node22
new file mode 100644
index 000000000000..cc34bd17864f
--- /dev/null
+++ b/misc/github-copilot-language-server/distinfo-node22
@@ -0,0 +1,11 @@
+TIMESTAMP = 1777521723



misc/github-copilot-language-server also has some changes but it was not 
requested to be stashed.


How can I understand why does this happen?


I believe that I've seen a similar situation before with different ports.




Thanks,
Yuri

Back to recent threads

'git stash' pushes files that are not listed in the command line | The Git List