While trying to pull from a remote branch I get an error:
Your local changes to the following files would be overwritten by merge: app/..../_shared.scss
Git is asking to commit the file or to stash.
The problem is - I've already done git add .
and git commit -am "trying to remove the error"
. The problem persist.
git status
says: "nothing to commit (working directory clean)"
Does anyone know how to get rid of it?
ANSWER: Move the offending file to some other location. Then delete the offending file from your tree. Pull again. then diff the changes from your offending file over the file you just pulled. hack, but it works.
Note: I found the answer here (Git asks me to commit or stash even those changes are commited), but since no one up voted it in the original thought I should repost. It's a hack, but it's the fastest route to resolution.