How to ignore files temporarily in git

Michael Roma on Jun 1, 2019

The following command will prevent files to staged when doing git add .

git update-index --assume-unchanged [file]

To undo this change, use the following command below:

git update-index –no-assume-unchanged [file]