Ignoring Local Files In Git Without Committing to Repo

I was recently working on a project that required some specific files on the local development environment, but didn’t want those files to be committed to the remote repository. Git lets you ignore files specific to a environment using the .git/info/exclude file. It works the same way as the .gitignore file but doesn’t get committed to the remote repository when you push.