I have a workflow pattern that crops up quite often and I wondered how to achieve this in git.
I have a file which has changed over time. I may have deleted a method or changed it in some way but I now realise some of the code could be useful.
How do I check the history of individual files and checkout and compare this previously committed file?