Total Pageviews

Friday, September 01, 2017

Howto exclude files from git without committing changes to .gitignore

Long time, no post ;-)

There are sometimes use cases where you don't want to change the .gitignore file.

You want to keep your local modifications just on your local box but you don't want a git pull command to change those modifications.

The file .git/info/exclude allows you to ignore files from being staged. It's some sort of own personal .gitignore file, which no other can see or touch. See this blog posting for more details.