Clone multiple git repositories via shell command
npm i git-clone-reposconst clone = require("git-clone-repos");
async () => {
const options = {
repos: [
"git@github.com:alex-page/alexpage.dev.git",
"git@github.com:alex-page/harmonograph.art.git",
],
destination: "./.repo/",
};
await clone(options);
};repos
Type: array
Array of git repository URLs. can be HTTPS https://github.com/alex-page/alexpage.dev.git or SSH git@github.com:alex-page/alexpage.dev.git.
destination
Type: string
Set the destination for the cloned repositories.
depth
Type: number
The depth to clone the repository.
isTreeless
Type: Boolean
If the cloned repository is treeless --filter=tree:0.
git-clone https://www.npmjs.com/package/git-clone