To Ignore changes in tracked files

Sometimes you just need to ignore the changes of some file, for example, database configuration, you may need the following command:

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

To track again, use:

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

Published by

vivo

This is Vivo. Yes, I'm Vivo.

Leave a Reply

Your email address will not be published. Required fields are marked *