\"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
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