git Git retrieve a single file from old commit Many times we wanted to retrieve a single file from old commit, below is the simple command to get the job done. git checkout We can also use HEAD reference in place of hash value: * HEAD will get file from last commit * HEAD^ : Last Commit - 1 * HEAD^^ : Last Commit