Complete implementation of repository reading
Write git objects to the repository