I have a file in a git repository that has a local change on it. I want to have git ignore the local change forever, but not the file. In particular,
If you can't use .gitignore as you need to make parallel changes in the same file(as found in your comments) then one option is git add -p Using this you can add or skip accordingly.
The problem using the above git command here is, it will be more of a manual process. I guess you may not find any other automated approach for you problem.