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 have files that have been modified but not committed. Either:
git reset --hard HEAD (to bring everything back to HEAD)
or, if you want to save your changes:
git checkout -b new_branch git add ... git commit git checkout -b old_branch git stash pop