"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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With