I have some local changes (not in separate files so .gitignore doesn\'t work) that I don\'t want to commit.
I do git reset --hard
sometimes after
If you never want these changes to be committed but always need them locally then consider creating and commiting a script or patch file for your local changes. Then you can keep and document your changes as well as easily apply them after a hard reset.
If you have changes that are specific to your environment then it may be worth externalising them into a configuration file.