How to discard local modifications in git?
Everybody has it's own way of writing code and there are times when you try out a few ways of creating a functionality or fixing that nasty bug which turns out to be not so good way of doing it. You want to discard your current changes, you can do it quite easily by checking out the modified files.