且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用node.js克隆github仓库

更新时间:2022-06-25 05:25:49

您可以使用 shelljs

You can use shelljs for this.

const shell = require('shelljs')
const path = 'absolute/path/to/folder'
shell.cd(path)
shell.exec('git clone https://github.com/atomicptr/dauntless-builder')