Thread (1 message) 1 message, 1 author, 2019-12-16

Fwd: `git stash pop -q` is deleting files.

From: Marce Romagnoli <hidden>
Date: 2019-12-16 13:20:16

Hi list,
this is my first time reporting (what I think is) a bug in git.

WHAT
`git stash pop -q` untracks stashed files and others.

WHICH VERSION
v2.24.1

HOW-TO REPRODUCE
- Create an empty repository
- Create 2 files, track them and commit.
- Change one of the files
- `git stash`
- `git stash pop -q`
-- Expected: The touched file is back in the index
-- Returned: All the files are no longer tracked.

We use this command on a pre-commit hook and we were scared for the
first time we realized all our files were deleted, anyway, it was easy
to go back.

Thanks for your time in advance.

Best,



Marcelo Romagnoli
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help