sometimes when you trying out new things in a project, eg, trying Dockerfile and docker-compose.yml, or writing a generator for a rails backend. but you're ready, you don't want to add thess files to git, you don't want to edit .gitignore or ~/.gitignore_global file, and git update-index --assue-unchanged is for files that's already in git index. so it is not what i want.
from stackoverflow i got this:
i like this tips :)