How to discard all uncommitted changes?
Example: I have a project that has a few dozen commits, assuming that at some point I decide to discard everything that has not yet been committed via commit , how can I do that?
Note: I want to undo everything until the previous commit. What would be the best way to do this?