0.1.0 • Published 6 years ago

git-commands v0.1.0

Weekly downloads
39
License
MIT
Repository
github
Last release
6 years ago

git-commands

nodejs操作git
Execute git command using Node.js

Install

npm i git-commands --save

Usage

const Git = require('git-commands')
const git = new Git({ reps: 'your git repository path' })
// status
console.log( git.command('status') )

// pull
console.log( git.command('pull') )

// checkout 
console.log( git.command('checkout master') )

// push
console.log( git.command('push origin master') )