Re: git stash save -u deletes ignored files without stashing them

2016-02-03 Thread Kevin Locke
On Sun, 2015-12-13 at 7:51, Michael Brade wrote: > Now node_modules will be deleted even though it was ignored at the time > of the "git stash save -u". Apparently .gitignore is reverted first, > then the cleanup is done taking the new state of .gitignore into account > where node_modules is now un

git stash save -u deletes ignored files without stashing them

2015-12-13 Thread Michael Brade
Hi, and it does so if .gitignore has not been committed yet. This is with git version 2.6.3. To reproduce: mkdir test cd test git init echo "test" > test echo "something.txt" > .gitignore git add test .gitignore git commit -a -m "init" mkdir node_modules echo "something" > node_modules/file.tx