Обратной к add является команда git rm UPD Помятуя о том, что не все советы одинаково полезны, сначала стоит заглянуть в man git-rm Remove files from the index, or from the working tree and the index. … When --cached is given … allowing the file to be removed from just the index. --cached Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone. Перевожу на русский: git rm --cached удаляет файлы только из индекса. (责任编辑:) |