git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git stash -u deletes directories containing ignored files
@ 2014-09-01 14:08 Cyrille Truchot
  0 siblings, 0 replies; only message in thread
From: Cyrille Truchot @ 2014-09-01 14:08 UTC (permalink / raw)
  To: git

Hey there,

I'm sure you've already heard about this because this is referenced on 
the web, but I cannot find anything about it on GitHub in the open 
issues nor in the fixed ones.

I'm working with Git for Windows, version 1.8.3.
The .gitignorefile contains a line like this : 'mydirectory/*'.
A new file is added in 'mydirectory' (but it's not showing with git 
status as it is ignored).
Let's say I want to stash several other files (tracked and untracked) 
and I use git stash -u.
The directory 'mydirectory' is then purely deleted, and not stashed. So, 
unrecoverable.

This happens only if thhe start is present in the .gitignore, because 
'mydirectory/' behaves normally.

So is there an open issue about this, or better, maybe it's already 
fixed in the latest versions ?
Thanks in advance for your reply, and many apologies if it's not relevant.

Someone else has described the bug here:
http://blog.icefusion.co.uk/git-stash-can-delete-ignored-files-git-stash-u/

Regards,
Cyrille

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-01 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-01 14:08 git stash -u deletes directories containing ignored files Cyrille Truchot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).