freeCodeCamp/guide/russian/miscellaneous/how-to-undo-a-git-add/index.md

13 lines
588 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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)