create_gitstats function

Create a GitStats object