How to display the git last commit of every file in a list with ruby

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn


You want to display the last commit of every file that you have in a list.


Let’s say that you have the following file list in an array:

in order to be able to get the last commits of each of the files in ruby do the following: