{"thread":{"id":"37469","subject":"git stash -u deletes directories containing ignored files","startedAt":"2014-09-01T14:08:49Z","lastAt":"2014-09-01T14:08:49Z","messageCount":1,"participants":["Cyrille Truchot"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"248699","messageId":"54047DF1.9020800@pird.com","threadId":"37469","inReplyTo":null,"subject":"git stash -u deletes directories containing ignored files","fromName":"Cyrille Truchot","fromEmail":"cyrille.truchot@pird.com","sentAt":"2014-09-01T14:08:49Z","receivedAt":"2014-09-01T14:08:49Z","isPatch":false,"sender":{"key":"cyrille.truchot@pird.com","avatar":null},"body":"Hey there,\n\nI'm sure you've already heard about this because this is referenced on \nthe web, but I cannot find anything about it on GitHub in the open \nissues nor in the fixed ones.\n\nI'm working with Git for Windows, version 1.8.3.\nThe .gitignorefile contains a line like this : 'mydirectory/*'.\nA new file is added in 'mydirectory' (but it's not showing with git \nstatus as it is ignored).\nLet's say I want to stash several other files (tracked and untracked) \nand I use git stash -u.\nThe directory 'mydirectory' is then purely deleted, and not stashed. So, \nunrecoverable.\n\nThis happens only if thhe start is present in the .gitignore, because \n'mydirectory/' behaves normally.\n\nSo is there an open issue about this, or better, maybe it's already \nfixed in the latest versions ?\nThanks in advance for your reply, and many apologies if it's not relevant.\n\nSomeone else has described the bug here:\nhttp://blog.icefusion.co.uk/git-stash-can-delete-ignored-files-git-stash-u/\n\nRegards,\nCyrille\n"}]}