git-commands

0.1.0 • Public • Published

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') )

Package Sidebar

Install

npm i git-commands

Weekly Downloads

118

Version

0.1.0

License

MIT

Unpacked Size

1.54 kB

Total Files

3

Last publish

Collaborators

  • gavinning