在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:desktop/dugite开源软件地址:https://github.com/desktop/dugite开源编程语言:TypeScript 88.1%开源软件介绍:Dugite - JS bindings for GitThis project provides bindings for Node applications to interact with Git repositories, using the same command line interface that core Git offers. Development is primarily driven by Git-related projects at GitHub such as GitHub Desktop. The source is in TypeScript, but can be consumed by any JavaScript application. Getting StartedAdd it to your project:
Then reference it in your application: import { GitProcess, GitError, IGitResult } from 'dugite'
const pathToRepository = 'C:/path/to/git/repository/'
const result = await GitProcess.exec([ 'status' ], pathToRepository)
if (result.exitCode === 0) {
const output = result.stdout
// do some things with the output
} else {
const error = result.stderr
// error handling
} Features
Supported Platforms
StatusThis project is under active development for Git-related projects at GitHub. This will stabilize as this library gets more usage in production, and is open to external contributions that align with the project's goals. If you are interested in getting involved with this project, refer to the CONTRIBUTING.md file for instructions and the documentation sections for more information about the project. RoadmapAs this is under active development, the roadmap is also subject to change. Some ideas:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论