Undo git update-index –assume-unchanged

I have run the following command to ignore watching/tracking a particular directory/file:

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

How can I undo this, so that <file> is watched/tracked again?

1Best Answer
11

To get undo/show dir’s/files that are set to assume-unchanged run this:

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

To get a list of dir’s/files that are assume-unchanged run this:

git ls-files -v|grep '^h'

Leave a Comment