I did some work in a git repository X, that has a submodule Y. I did some changes to files in X, which I want to keep and I did a change in the submodule Y that I want to discard now. So I want to discard all local changes I've made to the submodule.
I tried git checkout -- ../dep/libY but nothing changes.
Git status says:
modified: ../dep/libY (modified content)