I have added some new files in the repository. Made some changes to existing files , deleted few files etc..
when I issue "git stash"
, I expect all my local changes to be reverted and I should have clean working copy of my remote repo. But the files I have added newly are still showing up in the "git status". I have deleted the files manually.
why is it so? Do i have to issue "git reset"
?
To replicate:
- Go to git bash.
- cd repo
- touch abc.txt
- rm -rf existing.txt
- git stash
- git status
Assuming abc.txt is new file created. When I do "git stash" , the file is still present.