How to use the gitP function from simple-git

Find comprehensive JavaScript simple-git.gitP code examples handpicked from public code repositorys.

398
399
400
401
402
403
404
405
406
407

// prepare base directory
const remoteBaseDir = path.join(__dirname, 'remotes');
await fs.promises.mkdir(remoteBaseDir, { recursive: true });

const baseGit = simpleGit.gitP(remoteBaseDir);

for (const remote of config.remotes) {
	const user = /[^/]+(?=\/prism.git)/.exec(remote.repo);
	const branch = remote.branch || 'master';
fork icon0
star icon0
watch icon2

+ 14 other calls in file