implement the effect of .gitignore