tags:

views:

498

answers:

1

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

+2  A: 

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
jonescb
that helped... thanks!
jldupont