I am using git and currently on the master branch. I did some changes to files in my working directory but would like to delete those changes and go back to the version of the project when the last commit was make.
I tried git checkout master
but that gives a list of files when "M" on the start of each line and "Already on 'master'" message. But changed files are not being re changed back to how they were at the time of the last commit.
How can I got back to how the project was in the last commit? Thanks
edit
This question is different in that I want to undo the changes in the working directory to match the last commit in the repository.
Where the suggested duplicate post was not about that but rather it is about undo changes that were committed to the repository.