How to use the gitP function from simple-git
Find comprehensive JavaScript simple-git.gitP code examples handpicked from public code repositorys.
GitHub: Sabrrii/Padlet
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';
0
0
2
+ 14 other calls in file
simple-git.default is the most popular function in simple-git (59 examples)