git error "Cannot rewrite branch(es) with a dirty working directory"
git
Solution
A dirty working directory means you have uncommitted changes to your branch. You can either commit them or stash them. To stash just use:
git stash
And use this to bring your changes back
git stash apply
Problem
`"Cannot rewrite branch(es) with a dirty working directory".` I am new to Git - I tried googling for an answer to no avail. What does this error mean? What should/can I do?