can’t remove changes shown by git diff
One of the pains that I experienced working with Windows is git integration. Due to the line-endings issue, I encountered a scenario where changes shown by git diff can’t be removed by a git checkout -- ., which is pretty annoying since I can’t do an interactive rebase. It always tell me to either reset my changes or stash them. But neither works.
Good thing I found this,
git rm --cached -r .
git reset --hard