Apply .gitignore to tracked files