GithubHelp home page GithubHelp logo

git-repository's Introduction

git-repository

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 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 — A JavaScript compiler (ES6/ES7 → ES5.1)
  • Babel Starter Kit — A boilerplate for authoring JavaScript/React.js libraries

License

The MIT License © Konstantin Tarkus (@koistya)

git-repository's People

Contributors

koistya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

maximhoffman

git-repository's Issues

ReferenceError: regeneratorRuntime is not defined

Seems to be an error when trying to run the open() method.

at Function.open (....../node_modules/git-repository/lib/Repository.js:198:14)

This is line 198 in lib/Repository.js:

return regeneratorRuntime.async(function open$(context$2$0) {

Node: 6.9.1
Other: Using like: node -r ts-node/register some-module-that-uses-git-repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.