13 lines
588 B
Markdown
13 lines
588 B
Markdown
---
|
||
title: How to Undo a Git Add
|
||
localeTitle: Как отменить Git Add
|
||
---
|
||
# Отменить git add
|
||
|
||
Чтобы отменить `git add` перед фиксацией:
|
||
|
||
Запустите `git reset <file>` или `git reset` чтобы отключить все изменения.
|
||
|
||
В более старых версиях git команды были `git reset HEAD <file>` и `git reset HEAD` соответственно. Это было изменено в Git 1.8.2
|
||
|
||
[Источник](http://stackoverflow.com/questions/348170/undo-git-add-before-commit/348234#348234) |