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

By Sohel Rana

PHP Programmer, Software Engineer & Technology lover

Leave a Reply

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