If you have not committed the files yet, I would say add the file name to your file .gitignore, for example:
<filename>.<extension>
So, if the package.json file:
package.json
Wildcards can be done using *
*.json
AoeAoe: , git add --force, .gitignore.
, - 10 , : readme.md , .
: : .gitignore , git update-index
:
git update-index --assume-unchanged path/to/file
:
git update-index --no-assume-unchanged path/to/file