threads / discuss / 66092

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

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

## tl;dr

One message between Jul 31, 2026 and Jul 31, 2026.

replies: 0people: 1as markdown or json

Yuri· Jul 31, 2026, 07:49 UTC · 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