Is there any way I can force Git to commit files that have not been changed since last committed?
Here is the background:
I have a lot of files in a single commit on a branch, and I want to "copy" some of the changed files to another branch. If I wanted all of the changed files, I could merge the branch or cherry-pick the commit. But I only want some of them.
One way to do this would be to touch the required files in some way (perhaps by adding a space or a blank line), commit and cherry-pick the commit (bash "touch" will not do the job, btw).
But if I could commit the required files without modifying them, that would be best, avoiding a spurious file content modification - hence my question.