Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koistya/git-repository
A Promise-based JavaScript wrapper library for working with Git CLI
https://github.com/koistya/git-repository
Last synced: 14 days ago
JSON representation
A Promise-based JavaScript wrapper library for working with Git CLI
- Host: GitHub
- URL: https://github.com/koistya/git-repository
- Owner: koistya
- License: mit
- Created: 2015-09-05T11:12:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-23T10:54:55.000Z (over 8 years ago)
- Last Synced: 2024-05-02T05:54:10.487Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 122 KB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# [git-repository](https://www.npmjs.com/package/git-repository)
[![NPM version](http://img.shields.io/npm/v/git-repository.svg?style=flat-square)](http://www.npmjs.com/package/git-repository)
[![NPM downloads](http://img.shields.io/npm/dm/git-repository.svg?style=flat-square)](http://www.npmjs.com/package/git-repository)
[![Build status](http://img.shields.io/travis/koistya/git-repository/master.svg?style=flat-square)](https://travis-ci.org/koistya/git-repository)> A Promise-based JavaScript wrapper library for working with Git CLI.
Join [#git-repository](https://gitter.im/koistya/git-repository) chat room on Gitter to stay up to date and share your feedback!
### How to Setup
```sh
$ npm install git-repository
```### Getting Started
```js
import Repo from 'git-repository';export default async () => {
let repo = await Repo.open('./example', { init: true });
await repo.setRemote('origin', 'https://github.com/user/example.git');
await repo.add('--all .');
await repo.commit('Commit message');
await repo.push('origin', 'master');};
```### Related Projects
* [Babel](http://babeljs.io/) — A JavaScript compiler (ES6/ES7 → ES5.1)
* [Babel Starter Kit](https://github.com/kriasoft/babel-starter-kit) — A boilerplate for authoring JavaScript/React.js libraries### License
The MIT License © Konstantin Tarkus ([@koistya](https://twitter.com/koistya))