# 'git stash push -m "label" -- dir' saves into stash changes outside dir

1 messages from 2022-06-18 to 2022-06-18. Participants: Yuri.
Thread: https://gitlist.dev/t/58031

## Yuri, 2022-06-18 06:22

Subject: 'git stash push -m "label" -- dir' saves into stash changes outside dir
Message-ID: <a41e809c-4d91-cfc4-a512-77173f920d38@tsoft.com>
URL: https://gitlist.dev/e/a41e809c-4d91-cfc4-a512-77173f920d38%40tsoft.com

```
I am working in the FreeBSD ports repository.

The Mk directory has some changes and additions.

Other directories outside of Mk also have some additions.


The command I ran is:

 > git stash push -m "x" -- Mk/


It is supposed to create a stash entry with only changes under Mk.

However, 'git stash show -p stash@{0}' shows changes outside of Mk as well.

Changes under Mk went into stash and disappeared from the directory. 
Changes outside of Mk (wrongfully) also went into stash and remained in 
the directory.


IMO, this is a bug in git-2.35.1


FreeBSD 13.1


Yuri



```
