I made extensive changes to an open-source project with a large codebase, mostly using an interactive find-and-replace, then filed a GitHub PR and forgot about it. Two years later, they're taking a new look at the old PR, so I merged the current main
branch back onto my changes and pushed out the result.
The problem is that in the interim, a lot of the fixes I made were addressed by other commits, but their fix differs from mine in an unimportant way -- whitespace, comment wording, etc. I want to make it easier to review my PR by reducing the number of changed files, but I don't want to hand copy individual path names for each file containing trivial changes, into something like git checkout main -- path/to/similar-file.ext
, which would also risk overwriting an important change without realizing it.
Is there a clever command line that will show me each individual change (not whole-file-at-once) between one branch (main
) and another (my-feature
) with an interactive prompt to keep one or the other, similar to interactive cherry-pick? I'd also be happy with a solution that uses GitHub's PR interface, or VSCode.