Refactor repository creation & add comments.
Refactor repository creation & add comments.

This moves the git tree direct interactions into a single method,
and, hopefully, clarifies what's going on there. I'm not expecting
any functional changes from this.

jmorse/cyanide,jmorse/cyanide,jmorse/cyanide,jmorse/cyanide