method to extract the latest commits of the repos
fixed a typo