Move git config directives to install-api where they don't require sudo