I am trying to apply changes I stashed earlier with git stash pop and get the message:
git stash pop
Cannot apply to a dirty working tree, please stage your c
I do it in this way:
git add -A git stash apply
and then (optionaly):
git reset