# Revert the latest commit

> Oops!

- Canonical: https://preview.arshadmehmood.com/today-i-learned/git/revert-latest-commit/
- Section: git
- Author: Arshad Mehmood

### Oops!
```
git revert HEAD
```

