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
You can apply a stash to a "dirty" tree by doing a git add to stage any changes you've made, thus cleaning up the tree. Then you can git stash pop and apply the stashed changes, no problem.
git add