How to track and untrack in GIT

We all who working with GIT, sometimes we need to ignore/untrack some tracked file from git. To ignore any files from git just run it
git update-index --assume-unchanged path/to/file

And again if you want to track that untracked file then run it.
git update-index --no-assume-unchanged path/to/file