desktop/dugite
Tentang
Elegant bindings for working with Git in your Node applications
Alat pengembanganYang dapat Anda lakukan
- make it easy to work with Git repositories
- use the same commands as you would in a shell
- access to the full set of commands, options and formatting that Git core uses
- access to the latest features of Git
Pertumbuhan bintang terukur
- dalam 24 jam
- +1
- dalam 7 hari
- +2
- dalam 15 hari
- +3
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliDugite - JS bindings for Git
This 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.
Migrating from 2.x to 3.x
See the migration guide in the 3.0.0 release for details on breaking changes and how to update your code.
Getting Started
Add it to your project:
> npm install dugite
or
> yarn add dugite
Then reference it in your application:
import { exec } from 'dugite'
const pathToRepository = 'C:/path/to/git/repository/'
const { exitCode, stdout, stderr } = await exec(['status'], pathToRepository)
if (exitCode === 0) {
console.log(stdout)
} else {
console.error(stderr)
}
Features
- make it easy to work with Git repositories
- use the same commands as you would in a shell
- access to the full set of commands, options and formatting that Git core uses
- access to the latest features of Git
Supported Platforms
- Windows 7 and later
- macOS 10.9 and up
- Linux (tested on Ubuntu Precise/Trusty and Fedora 24)
Status
This 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.
Roadmap
As this is under active development, the roadmap is also subject to change. Some ideas:
- authentication support in-the-box
- make environment setup easier to override
- API additions for common tasks such as parsing output
- error handling improvements
Jelajahi proyek terkait
Memuat…