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
Either clean your working directory with git reset, commit the changes, or, if you want to stash the current changes, try:
$ git stash save "description of current changes" $ git stash pop stash@{1}
This will stash the current changes, and then pop the second stash from the stash stack.