You could run git diff on the file, save the resulting diff, edit it to remove the changes you do want to save, then run it through patch -R to undo the remaining diffs.
git diff file.txt >patch.tmp
# edit patch.tmp to remove the hunks you want to keep
patch -R