repos-pull
v1.1.9
Published
A CLI tool to pull code from Gitee repository
Readme
repos-pull
一个用于克隆 Git 仓库的 Node.js 工具。
功能特性
- 检查 Git 是否已安装
- 检查网络连接状态
- 获取仓库类型
- 克隆 Git 仓库(支持指定分支)
安装
npm install使用方法
在项目中引入并使用:
const { cloneRepository } = require('./src/index');
async function run() {
await cloneRepository('https://gitee.com/username/repo.git', 'main');
}
run();项目结构
├── src/
│ ├── index.js # 入口文件,包含主函数
│ └── utils.js # 工具函数
├── package.json # 项目配置
└── .gitignore # Git 忽略文件依赖
- Node.js
- Git
许可证
MIT
