.gitignore working after cache trim