In my master branch yesterday different people made their own commits. Last 2 commits are wrong, is there a way to checkout to master at an specific commit?

Something like

```
git checkout master -some_commit

```

[![enter image description here](https://i.stack.imgur.com/8hmTX.png)](https://i.stack.imgur.com/8hmTX.png)