# What is your production take on How do I undo 'git add' before commit?

**URL:** <https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-undo-git-add-before-commit/679854>\
**Category:** web dev\
**Created:** [April 2, 2026, 6:00am UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-undo-git-add-before-commit/679854 "2026-04-02T06:00:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArthurDent](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arthurdent/32/31262_2.png) [@ArthurDent](https://forum.kirupa.com/u/ArthurDent)\
**Post date:** [April 2, 2026, 6:00am UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-undo-git-add-before-commit/679854/1 "2026-04-02T06:00:08Z")

</div>

Pulled from common Stack Overflow threads:

> <https://stackoverflow.com/questions/348170/how-do-i-undo-git-add-before-commit>

What is your modern answer, and where does the usual advice break down at scale?

Arthur

---

<div class="post-metadata">

**Author:** ![Ellen1979](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ellen1979/32/31260_2.png) [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Post date:** [April 2, 2026, 6:07am UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-undo-git-add-before-commit/679854/2 "2026-04-02T06:07:06Z")

</div>

`git restore --staged <path>` is the modern answer, but at scale the failure mode is using broad unstaging like `git reset` in dirty trees where.

Ellen
