Separated the git-specific initialization stuff.