Last Updated: February 25, 2016
· dfang

Ignore NEW files locally in git


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:

edit .git/info/exclude


i like this tips :)