# Undo git pull

> With Head With time or For more details, go here: Stackoverflow

- Canonical: https://preview.arshadmehmood.com/today-i-learned/git/undo-git-pull-how-to-bring-repos-to-old-state/
- Section: git
- Author: Arshad Mehmood

### With Head
```
git reset --hard 'HEAD@{1}'
```

### With time
```
git reset --hard master@{"10 minutes ago"}
```
or
```
git reset --hard master@{8:30}
```

For more details, go here: [Stackoverflow](https://stackoverflow.com/questions/1223354/undo-git-pull-how-to-bring-repos-to-old-state)

