Не допустите проигнорированные файлы в состояние мерзавца

Ложь возврата говорит для не принятия мер по умолчанию, которые в случае <a href> должны перейти по ссылке. Когда Вы возвратите false к onclick, тогда href будет проигнорирован.

116
задан random 18 November 2011 в 04:20
поделиться

2 ответа

As I found in this post, .gitignore only works for untracked files. If you added files to repository, you can:

git update-index --assume-unchanged <file>

or remove them from repository by

git rm --cached <file>

Edit

This article explains that too

206
ответ дан 24 November 2019 в 02:15
поделиться

From man git-lsfiles:

-i, --ignored
Show ignored files in the output. Note that this also reverses any exclude list present.

Personally I tend to keep doxygen files in my source tree, so I simply added this to my .gitignore (which is in the topmost directory of my source tree):

docs/*

Hope that helps.

0
ответ дан 24 November 2019 в 02:15
поделиться
Другие вопросы по тегам:

Похожие вопросы: