.gitignore only on local
For local ignores you should use the .git/info/exclude file, not .gitignore: Patterns which are specific to a particular repository but which do not need to be shared with other related repositories (e.g., auxiliary files that live inside the repository but are specific to one user’s workflow) should go into the $GIT_DIR/info/exclude file. The two files … Read more