In the morning I made a commit and pushed it to main branch and it was merged as it was just a little change.
But then i totally screwed up the whole project. Now I want to go back to that last commit which I did in the morning, I don't want my new changes to be stashed or something else. I just want to put my code to the last commit I did.
I'm using android studio terminal for git, which is basically same as normal git terminals.