Whenever I do a work task, I create a local branch in git, then I need to modify a bunch of configuration files (mostly containing connection strings to databases) to set to my local environment before the actual work. These changes I don't want to push to the repository later after I finish my task.
Actually I would prefer to filter them out when reviewing changed files (git status).
I could do a first commit to my local branch and revert it before pushing. But there's a chance I forget it. Is there a better way for this?