Add a way to checkout with a repository's commit as reference of time.