Hi folks I am new developer trying to learn.
I use git desktop where you right click on a file and select discard changes, if you don't want to add that file into commit. It revert it back to its original state.
Now I am working in terminal how can I do that in terminal?
By mistake I added some changes into a file and I don't want to keep those changes. Please help.
Please, I am not an advanced user therefore kindly keep it as simple as possible. I have not made any commit on that machine yet.
I am only interested in I googled it but could not find a simple layman'ish answer.