import * as exec from './exec'; const git = async (args: string[] = []): Promise => { return await exec.exec(`git`, args, true).then(res => { if (res.stderr != '' && !res.success) { throw new Error(res.stderr); } return res.stdout.trim(); }); }; export async function setConfig(key: string, value: string): Promise { await git(['config', key, value]); }