# git reset

say it: **“GIT REE-set”** **/ɡɪt ˈriːsɛt/**

Moves a branch or adjusts the index and working tree to match a selected commit, depending on its mode.

## What does **git reset** do?

**git reset** — Moves a branch or adjusts the index and working tree to match a selected commit, depending on its mode.

```bash
git reset --mixed HEAD~1
```

Level: Journeyman · [More Git terms at this level](https://www.ask-codey.com/glossary?category=git&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/git-reset
