reverse the order of commits to retrieve the last commit of files.