node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »



NPM version NPM downloads Build status

A Promise-based JavaScript wrapper library for working with Git CLI.

Join #git-repository chat room on Gitter to stay up to date and share your feedback!

How to Setup

$ npm install git-repository

Getting Started

import Repo from 'git-repository';
export default async () => {
  let repo = await'./example', { init: true });
  await repo.setRemote('origin', '');
  await repo.add('--all .');
  await repo.commit('Commit message');
  await repo.push('origin', 'master');

Related Projects

  • Babel — A JavaScript compiler (ES6/ES7 → ES5.1)
  • Babel Starter Kit — A boilerplate for authoring JavaScript/React.js libraries


The MIT License © Konstantin Tarkus (@koistya)