Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.4k points)

The way you Git ignore watching/tracking a particular dir/file. you just run this:

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

Now how do you undo it so they are watched again? (Let's call it un-assume.)

1 Answer

0 votes
by (27.5k points)

In order to get undo/show dir's/files that are set to assume-unchanged run this:

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

In order to get a list of dir's/files that are assume-unchanged run this:

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

Browse Categories