I was pair programming on a project with a colleague. We made great progress but we forgot to commit the work we collaborated on. Later on, my team mate went off and made some experimental changes in another part of the code base. He then committed that experimental work, and accidentally included the work we did together without realizing it.
I now have a fork of his branch and the commit with our combined work. Is there a way to go through each line of code that was add/removed in that commit and choose to keep or revert it?